[jedit:plugin-bugs] #1875 Mac OS X Support plugin exception with Java 9-ea+157
"Björn Kautler" via jEdit-devel <[email protected]> Fri, 24 Nov 2023 16:20:17 -0000
| Newsgroups | gmane.editors.jedit.devel |
|---|---|
| Message-ID | </p/jedit/plugin-bugs/1875/51b2ee1e53118a716cb16906e166750d1fc96566.plugin-bugs@jedit.p.sourceforge.net> |
- **status**: open --> closed-fixed - **Group**: --> - **Comment**: This should long be fixed already in the newer Mac OS Support 1.5 plugin, which will also be shipped with jEdit 5.7.0, but can also manually be installed through the plugin manager. --- **[plugin-bugs:#1875] Mac OS X Support plugin exception with Java 9-ea+157 ** **Status:** closed-fixed **Group:** **Created:** Fri Feb 24, 2017 12:32 PM UTC by Joern Huxhorn **Last Updated:** Sat Oct 06, 2018 08:29 PM UTC **Owner:** nobody jEdit 5.3.0 Plugin: Mac OS X Support 1.3 Platform: macOS 10.12.3 Java version: 9-ea+157 Just wanted to give you a little headstart regarding Java 9 bugfixes. Several exceptions are showing up during startup. Those are all related to com.apple.eawt being unavailable. Unfortunately, the implementation of those classes did also change so starting the JVM with `--add-exports java.desktop/com.apple.eawt=ALL-UNNAMED` option does not fix the problem. I took the easy way out in my application and got rid of the special OS X handling for now. Starting with Java 9, such support should be handled by http://download.java.net/java/jdk9/docs/api/java/awt/Desktop.html and http://download.java.net/java/jdk9/docs/api/java/awt/desktop/package-summary.html I'm unaware of any way to support both Java 9 and Java >= 8 at the same time. java.lang.IllegalAccessException: class macosx.OSXAdapter cannot access class com.apple.eawt.Application (in module java.desktop) because module java.desktop does not export com.apple.eawt to unnamed module @6074967a at java.base/jdk.internal.reflect.Reflection.throwIllegalAccessException(Unknown Source) at java.base/jdk.internal.reflect.Reflection.throwIllegalAccessException(Unknown Source) at java.base/jdk.internal.reflect.Reflection.ensureMemberAccess(Unknown Source) at java.base/java.lang.reflect.AccessibleObject.slowCheckMemberAccess(Unknown Source) at java.base/java.lang.reflect.AccessibleObject.checkAccess(Unknown Source) at java.base/java.lang.reflect.Constructor.newInstance(Unknown Source) at macosx.OSXAdapter.setHandler(OSXAdapter.java:118) at macosx.OSXAdapter.setQuitHandler(OSXAdapter.java:50) at macosx.MacOSXPlugin$1.run(MacOSXPlugin.java:67) at java.desktop/java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.desktop/java.awt.EventQueue.access$500(Unknown Source) at java.desktop/java.awt.EventQueue$3.run(Unknown Source) at java.desktop/java.awt.EventQueue$3.run(Unknown Source) at java.base/java.security.AccessController.doPrivileged(Native Method) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source) at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source) at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.desktop/java.awt.EventDispatchThread.run(Unknown Source) Similar exceptions are thrown for other setXyzHandler methods. There are also some NPEs but those seem to have the same root cause. --- Sent from sourceforge.net because [email protected] is subscribed to https://sourceforge.net/p/jedit/plugin-bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/jedit/admin/plugin-bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. -- ----------------------------------------------- jEdit Developers' List [email protected] https://lists.sourceforge.net/lists/listinfo/jedit-devel