[Bug 297481] deskutils/freemind: doesn't work with openjdk 25

[email protected]
Newsgroups gmane.os.freebsd.devel.ports.bugs
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=297481

            Bug ID: 297481
           Summary: deskutils/freemind: doesn't work with openjdk 25
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
                CC: [email protected]
             Flags: maintainer-feedback?([email protected])

deskutils/freemind fails to start with openjdk 25:

$ freemind
Checking Java Version...
Exception in thread "main" java.lang.reflect.InaccessibleObjectException:
Unable to make field private static java.lang.String
sun.awt.X11.XToolkit.awtAppClassName accessible: module java.desktop does not
"opens sun.awt.X11" to unnamed module @78e03bb5
        at
java.base/java.lang.reflect.AccessibleObject.throwInaccessibleObjectException(AccessibleObject.java:353)
        at
java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:329)
        at
java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:277)
        at
java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:179)
        at java.base/java.lang.reflect.Field.setAccessible(Field.java:173)
        at freemind.main.FreeMindStarter.main(FreeMindStarter.java:72)

I was able to work around the issue by setting:

export JAVA_VERSION="8"

Perhaps other versions of Java will work, too.

-- 
You are receiving this mail because:
You are the assignee for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.