This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 258655 - ClassCastException when closing javax.swing form in editor
Summary: ClassCastException when closing javax.swing form in editor
Status: RESOLVED INVALID
Alias: None
Product: platform
Classification: Unclassified
Component: Actions (show other bugs)
Version: 8.2
Hardware: PC Linux
: P2 normal (vote)
Assignee: Jan Peska
URL:
Keywords: JDK_9
Depends on:
Blocks:
 
Reported: 2016-04-05 12:09 UTC by Martin Balin
Modified: 2016-04-05 12:12 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
full stack trace for CCE (8.28 KB, text/plain)
2016-04-05 12:09 UTC, Martin Balin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Balin 2016-04-05 12:09:23 UTC
Created attachment 159120 [details]
full stack trace for CCE

Using JDK9 build on top of JDK9 EA b111. Closing JFrame document opened from swing app project and following exception is thrown 
java.lang.reflect.InaccessibleObjectException: Unable to make member of class sun.awt.im.InputContext accessible:  module java.desktop does not export sun.awt.im to unnamed module @825c9e2
	at sun.reflect.Reflection.throwInaccessibleObjectException(java.base@9-ea/Reflection.java:420)
	at java.lang.reflect.AccessibleObject.checkCanSetAccessible(java.base@9-ea/AccessibleObject.java:174)
	at java.lang.reflect.Field.checkCanSetAccessible(java.base@9-ea/Field.java:170)
	at java.lang.reflect.Field.setAccessible(java.base@9-ea/Field.java:164)
	at org.openide.text.QuietEditorPane$1.run(QuietEditorPane.java:293)
	at org.openide.text.QuietEditorPane.removeNotify(QuietEditorPane.java:326)
	at java.awt.Container.removeNotify(java.desktop@9-ea/Container.java:2827)

Full stack trace in attachement.
Comment 1 Martin Balin 2016-04-05 12:12:25 UTC
NB was started on top of JDK9 EE without -addExport(s), thus invalid.