You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
City db = new City("ip.ipdb");
System.out.println(Arrays.toString(db.find("1.1.1.1", "CN")));
会报错
Exception in thread "main" java.lang.IllegalAccessError: class net.ipip.ipdb.Reader (in unnamed module @0x5479e3f) cannot access class sun.net.util.IPAddressUtil (in module java.base) because module java.base does not export sun.net.util to unnamed module @0x5479e3f
at net.ipip.ipdb.Reader.find(Reader.java:100)
at net.ipip.ipdb.City.find(City.java:36)
at org.example.Main.main(Main.java:23)
The text was updated successfully, but these errors were encountered:
会报错
Exception in thread "main" java.lang.IllegalAccessError: class net.ipip.ipdb.Reader (in unnamed module @0x5479e3f) cannot access class sun.net.util.IPAddressUtil (in module java.base) because module java.base does not export sun.net.util to unnamed module @0x5479e3f
at net.ipip.ipdb.Reader.find(Reader.java:100)
at net.ipip.ipdb.City.find(City.java:36)
at org.example.Main.main(Main.java:23)
The text was updated successfully, but these errors were encountered: