PreviousNextTracker indexSee it online !

(202/211) 4068 - NoSuchMethodException in OSXAdapter.java

Hello,

After upgrading jEdit to 5.5.0, I've started getting the following error at every launching (I haven't seen any problem which caused by this though)

java.lang.NoSuchMethodException: com.apple.eawt.Application.addApplicationListener(com.apple.eawt.ApplicationListener)
at java.base/java.lang.Class.getDeclaredMethod(Unknown Source)
at macosx.OSXAdapter.setHandler(OSXAdapter.java:121)
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)

jEdit version: 5.5.0
platform: OSX 10.12.6
Java version: Oracle Java 9.0.4
step to reproduce: Simply launch jEdit with MacOSXPlugin enabled, and you'll see "7 error(s)" on the status bar

Thanks,
Kohei

Submitted kohei - 2018-05-08 02:36:18.828000 Assigned
Priority 5 Labels
Status open Group normal bug
Resolution None

Comments

2018-10-05 21:43:35.112000
makarius

The same happens with recent OpenJDK 11 on macOS 10.13.6, see the included log.

log (1.9Kio)

2018-10-06 12:07:44.922000
makarius

Java 9 has official discontinued some old macOS desktop features. Instead there are regular JDK operations for that. See also:

* https://docs.oracle.com/javase/9/migrate/toc.htm#JSMIG-GUID-97C1D0BB-D5D3-4CAD-B17D-03A87A0AAF3B
* http://openjdk.java.net/jeps/272

2018-10-06 20:30:32.007000
makarius

See also https://sourceforge.net/p/jedit/plugin-bugs/1875

2018-10-06 20:32:28.717000
makarius

- **Group**: minor bug --> normal bug