[Debian-astro-maintainers] Bug#924283: Wrong jre dependency of Jython

Ole Streicher olebole at debian.org
Tue Mar 12 11:00:34 GMT 2019


Control: reassign -1 jython 2.7.1+repack1-1
Control: affects -1 jython-stilts
Control: retitle -1 jython: does not run with older Java versions
Control: tags -1 - moreinfo + patch

Jython allows to be installed with an old version of Java, but then
fails to run:

# apt install openjdk-8-jre-headless jython --no-install-recommends
# jython
Exception in thread "main" java.lang.NoSuchMethodError: java.nio.ByteBuffer.clear()Ljava/nio/ByteBuffer;
	at org.python.core.io.BufferedReader.clear(BufferedReader.java:147)
	at org.python.core.io.BufferedReader.<init>(BufferedReader.java:27)
	at org.python.core.PyFile.createBuffer(PyFile.java:227)
	at org.python.core.PyFile.file___init__(PyFile.java:185)
	at org.python.core.PyFile.file___init__(PyFile.java:178)
	at org.python.core.PyFile.<init>(PyFile.java:101)
	at org.python.core.PySystemState.<init>(PySystemState.java:237)
	at org.python.core.PySystemState.doInitialize(PySystemState.java:1112)
	at org.python.core.PySystemState.initialize(PySystemState.java:1023)
	at org.python.core.PySystemState.initialize(PySystemState.java:979)
	at org.python.core.PySystemState.initialize(PySystemState.java:974)
	at org.python.util.jython.run(jython.java:263)
	at org.python.util.jython.main(jython.java:142)

This is a compatibility problem introduced with Java 9. It can be solved
by replacing the dependency "java5-runtime-headless" by
"java9-runtime-headless"; see the attached patch. Launchpad bugs
#1771476 and #1784043 report similar problems, which would be fixed as
well.

Best

Ole


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Increase-minimal-JRE-version-to-Java9.patch
Type: text/x-patch
Size: 980 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/debian-astro-maintainers/attachments/20190312/bfba0e65/attachment-0001.bin>


More information about the Debian-astro-maintainers mailing list