Menu

#4068 NoSuchMethodException in OSXAdapter.java

normal bug
closed-fixed
nobody
None
5
2023-11-24
2018-05-08
No

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

Discussion

  • Makarius

    Makarius - 2018-10-05

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

     

    Last edit: Makarius 2018-10-05
  • Makarius

    Makarius - 2018-10-06
     
  • Makarius

    Makarius - 2018-10-06
    • Group: minor bug --> normal bug
     
  • Björn Kautler

    Björn Kautler - 2023-11-24
    • status: open --> closed-fixed
     
  • Björn Kautler

    Björn Kautler - 2023-11-24

    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.

     

Log in to post a comment.