Message12306
At the moment, I am using the jrt filesystem provider as Alan suggests, but scanning only the modules from a short list. THis is not what I intend to end up with. However, I think it might be useful for an installation to specify a subset of modules, for performance reasons, to discourage use (I wonb't say prevent), or avoid a problem case. MAybe a list of regexes?
I'm noting here as a defect for further study that on Java 11 (and not before) the import of java.util.regex is incomplete:
PS jython-trunk> dist\bin\jython -i .\dist\Lib\test\import_star_from_java.py
Traceback (most recent call last):
File ".\dist\Lib\test\import_star_from_java.py", line 4, in <module>
p = Pattern.compile("foo")
NameError: name 'Pattern' is not defined
>>> import java.util.regex as r
>>> dir(r)
['MatchResult', 'PatternSyntaxException', '__name__']
Where are Matcher and Pattern? On Java 10 we see no exception and:
>>> dir(r)
['MatchResult', 'Matcher', 'Pattern', 'PatternSyntaxException', '__name__'] |
|
Date |
User |
Action |
Args |
2019-01-08 22:42:49 | jeff.allen | set | messageid: <1546987369.18.0.738322395668.issue2362@roundup.psfhosted.org> |
2019-01-08 22:42:49 | jeff.allen | set | recipients:
+ jeff.allen, fwierzbicki, amak, zyasoft, darjus, rpan, sfelts, mr, alanb |
2019-01-08 22:42:49 | jeff.allen | link | issue2362 messages |
2019-01-08 22:42:49 | jeff.allen | create | |
|