We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3ef6e6 commit 63490baCopy full SHA for 63490ba
graalpython/lib-graalpython/java.py
@@ -47,6 +47,9 @@ def is_java_package(name):
47
package = type("java.lang.Package")
48
return any(p.getName().startswith(name) for p in package.getPackages())
49
except KeyError:
50
+ if sys.flags.verbose:
51
+ from _warnings import _warn
52
+ _warn("Host lookup allowed, but java.lang.Package not available. Importing from Java cannot work.")
53
return False
54
55
@staticmethod
0 commit comments