Message12306

Author jeff.allen
Recipients alanb, amak, darjus, fwierzbicki, jeff.allen, mr, rpan, sfelts, zyasoft
Date 2019-01-08.22:42:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1546987369.18.0.738322395668.issue2362@roundup.psfhosted.org>
In-reply-to
Content
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__']
History
Date User Action Args
2019-01-08 22:42:49jeff.allensetmessageid: <1546987369.18.0.738322395668.issue2362@roundup.psfhosted.org>
2019-01-08 22:42:49jeff.allensetrecipients: + jeff.allen, fwierzbicki, amak, zyasoft, darjus, rpan, sfelts, mr, alanb
2019-01-08 22:42:49jeff.allenlinkissue2362 messages
2019-01-08 22:42:49jeff.allencreate