apache / apache/iotdb

when running the program in IDE, we can not get the version info

未关闭
#2,772 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Java
星标
6.4k
派生
1.2k
平均合并
1 天 23 小时
30 天内合并 PR
115

描述

in IoTDBConstant class

//when running the program in IDE, we can not get the version info using getImplementationVersion()
public static final String VERSION =
IoTDBConstant.class.getPackage().getImplementationVersion() != null ? IoTDBConstant.class
.getPackage().getImplementationVersion() : "UNKNOWN";

![image](https://user-images.githubusercontent.com/7359454/109935388-8173ea80-7d08-11eb-8239-cf01cb441fcf.png)

![image](https://user-images.githubusercontent.com/7359454/109935424-89338f00-7d08-11eb-9a93-b58ae75663af.png)

Hope that the version information can be obtained normally in the development environment

贡献指南

打开贡献指南

调研方向

从 IoTDBConstant 类的 VERSION 字段开始,比较从 IDE 运行与运行打包应用程序时 getImplementationVersion() 的行为。重现 IDE 情况,然后验证开发环境中的运行会报告版本信息而不是 UNKNOWN,同时打包后的运行仍能正常工作。

由索引模型根据 Issue 内容生成。

评估

技术栈
java
领域
databases
Issue 类型
缺陷
难度
2/5
预计耗时
1-3 小时
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。