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 220683 - IllegalAccessException: Class org.netbeans.modules.options.keymap.LayersBridge can not access a member of class org.openide.awt.GeneralAction$BaseDelAction with modifiers "final"
Summary: IllegalAccessException: Class org.netbeans.modules.options.keymap.LayersBridg...
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Key bindings (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-23 17:51 UTC by Petr Cyhelsky
Modified: 2012-10-26 01:29 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 193956


Attachments
stacktrace (1.28 KB, text/plain)
2012-10-23 17:51 UTC, Petr Cyhelsky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Cyhelsky 2012-10-23 17:51:56 UTC
Build: NetBeans IDE Dev (Build 201210080002)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.2-b09, Java(TM) SE Runtime Environment, 1.7.0_06-b22
OS: Linux

Stacktrace: 
java.lang.IllegalAccessException: Class org.netbeans.modules.options.keymap.LayersBridge can not access a member of class org.openide.awt.GeneralAction$BaseDelAction with modifiers "final"
   at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:95)
   at java.lang.reflect.AccessibleObject.slowCheckMemberAccess(AccessibleObject.java:261)
   at java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:253)
   at java.lang.reflect.Field.doSecurityCheck(Field.java:983)
   at java.lang.reflect.Field.getFieldAccessor(Field.java:927)
   at java.lang.reflect.Field.get(Field.java:372)
Comment 1 Petr Cyhelsky 2012-10-23 17:51:58 UTC
Created attachment 126403 [details]
stacktrace
Comment 2 Theofanis Oikonomou 2012-10-25 10:55:45 UTC
I guess related with the fix in bug 203203. re-assigning for evaluation. Thanks
Comment 3 Svata Dedic 2012-10-25 11:19:50 UTC
There's still poor synchronization in LayersBridge. The KEY_FIELD gets initialized before the reflected Field is set to accessible, and used by a competing thread which then fails.
Comment 4 Svata Dedic 2012-10-25 11:36:35 UTC
Changeset: f929a73011d2
Author:    Svata Dedic <sdedic@netbeans.org>
Date:      2012-10-25 13:36
Message:   Avoided premature init of KEY_FIELD
Comment 5 Quality Engineering 2012-10-26 01:29:20 UTC
Integrated into 'main-golden', will be available in build *201210260001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/f929a73011d2
User: Svata Dedic <sdedic@netbeans.org>
Log: Issue #220683 - IllegalAccessException: Class org.netbeans.modules.options.keymap.LayersBridge can not access a member of class org.openide.awt.GeneralAction$BaseDelAction with modifiers "final": fixed
Avoided premature init of KEY_FIELD