tagphi / czdb-search-java

This project is a Java library for searching IP address-related data in a CZDB database. It supports three types of search algorithms: memory search, binary search, and B-tree search.
Apache License 2.0
17 stars 6 forks source link

JDK17环境下报错 #3

Closed kowhi closed 3 months ago

kowhi commented 3 months ago

java.lang.IllegalAccessError: class net.cz88.czdb.DbSearcher (in unnamed module @0x64a294a6) cannot access class sun.net.util.IPAddressUtil (in module java.base) because module java.base does not export sun.net.util to unnamed module @0x64a294a6

at net.cz88.czdb.DbSearcher.getIpBytes(DbSearcher.java:566)
at net.cz88.czdb.DbSearcher.search(DbSearcher.java:300)
lim-kim930 commented 3 months ago

可以参考上面的PR改下

craigliu commented 3 months ago

好 我改好测一下

craigliu commented 3 months ago

可以参考上面的PR改下

合并进去了,版本1.2.0.1