jdk 17 兼容性
Opened this issue · 1 comments
ccwxl commented
驱动中com.aliyun.lindorm.table.client.Driver#connect
final Properties info = new Properties(userInfo);
这段代码, 初始化info 但是为空.
jdk17中
public Properties(Properties defaults) {
this(defaults, 8);
}
private Properties(Properties defaults, int initialCapacity) {
// use package-private constructor to
// initialize unused fields with dummy values
super((Void) null);
map = new ConcurrentHashMap<>(initialCapacity);
this.defaults = defaults;
// Ensure writes can't be reordered
UNSAFE.storeFence();
}
/**
* Properties does not store values in its inherited Hashtable, but instead
* in an internal ConcurrentHashMap. Synchronization is omitted from
* simple read operations. Writes and bulk operations remain synchronized,
* as in Hashtable.
*/
private transient volatile ConcurrentHashMap<Object, Object> map;
需要更改实现. 兼容jdk17
bakea commented
这是来自QQ邮箱的假期自动回复邮件。
您好,您的邮件我已经收到!