mmj2 on Java 13?

48 views
Skip to first unread message

Brian Larson

unread,
Sep 20, 2021, 5:59:44 PM9/20/21
to Metamath
Running mmj2 on MacOS 10.15.7 with Java 13.0.2, misbehaves and spews error messages like the one below to the console/terminal.

However, on Ubuntu with Java 1.8.0_191, it works swimmingly.

Users experiencing confounding behavior should check what version of Java is installed.


--Brian


java.lang.ClassCastException: class javax.swing.text.AbstractDocument$DefaultDocumentEventUndoableWrapper cannot be cast to class javax.swing.text.AbstractDocument$DefaultDocumentEvent (javax.swing.text.AbstractDocument$DefaultDocumentEventUndoableWrapper and javax.swing.text.AbstractDocument$DefaultDocumentEvent are in module java.desktop of loader 'bootstrap')

at mmj.pa.CompoundUndoManager.undoableEditHappened(CompoundUndoManager.java:110)

at java.desktop/javax.swing.text.AbstractDocument.fireUndoableEditUpdate(AbstractDocument.java:293)

at java.desktop/javax.swing.text.DefaultStyledDocument.setCharacterAttributes(DefaultStyledDocument.java:530)

at mmj.pa.ColorThread.processEvent(ColorThread.java:266)

at mmj.pa.ColorThread.run(ColorThread.java:170)

Brian Larson

unread,
Sep 20, 2021, 6:23:33 PM9/20/21
to Metamath
Java 13 seemed to be the problem.
This tells how to determine what versions you have installed, and how to choose one:

Choosing Java 1.8 made everything better.

--Brian

Alexander van der Vekens

unread,
Sep 21, 2021, 12:52:53 AM9/21/21
to Metamath
Issues with Java versions higher than 8/1.8 were already reported in https://groups.google.com/g/metamath/c/3kN15fc2MdY and https://groups.google.com/g/metamath/c/BzdukfcgZqM/m/pLkfyVqNAwAJ, but I think they were not fixed (in the officially available version). Therefore, mmj2 should be used with Java 1.8 only.
Reply all
Reply to author
Forward
0 new messages