Message11327

Author alanb
Recipients alanb
Date 2017-04-27.12:00:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1493294403.21.0.564058232246.issue2582@psf.upfronthosting.co.za>
In-reply-to
Content
`java -jar jython-standalone-2.7.0.jar` does not does not prompt for input. Running with `--permit-illegal-access` (new option in JDK 9 to reveal code doing bad things) may help understand what is going on, it seems that Jython has code that is trying to access a few JDK internal classes and fields.

$ java --permit-illegal-access -jar jython-standalone-2.7.0.jar 
WARNING: --permit-illegal-access will be removed in the next major release
WARNING: Illegal access by jnr.posix.JavaLibCHelper (file:/jython/jython-standalone-2.7.0.jar) to method sun.nio.ch.SelChImpl.getFD() (permitted by --permit-illegal-access)
WARNING: Illegal access by jnr.posix.JavaLibCHelper (file:/jython/jython-standalone-2.7.0.jar) to field sun.nio.ch.FileChannelImpl.fd (permitted by --permit-illegal-access)
WARNING: Illegal access by jnr.posix.JavaLibCHelper (file:/jython/jython-standalone-2.7.0.jar) to field java.io.FileDescriptor.fd (permitted by --permit-illegal-access)
WARNING: Illegal access by org.python.core.PySystemState (file:/jython/jython-standalone-2.7.0.jar) to method java.io.Console.encoding() (permitted by --permit-illegal-access)
Jython 2.7.0 (default:9987c746f838, Apr 29 2015, 02:25:11) 
[Java HotSpot(TM) 64-Bit Server VM (Oracle Corporation)] on java9-internal
Type "help", "copyright", "credits" or "license" for more information.
>>> 
>>> 
>>>
History
Date User Action Args
2017-04-27 12:00:03alanbsetrecipients: + alanb
2017-04-27 12:00:03alanbsetmessageid: <1493294403.21.0.564058232246.issue2582@psf.upfronthosting.co.za>
2017-04-27 12:00:03alanblinkissue2582 messages
2017-04-27 12:00:02alanbcreate