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.
Summary: | Exception during startup java.lang.IllegalAccessException: Class org.netbeans.core.xml.FileEntityResolver | ||
---|---|---|---|
Product: | platform | Reporter: | ahe <ahe> |
Component: | -- Other -- | Assignee: | Jaroslav Tulach <jtulach> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | CC: | jchalupa |
Priority: | P4 | ||
Version: | 5.x | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | messages.log |
Description
ahe
2005-10-26 02:59:51 UTC
Created attachment 26336 [details]
messages.log
I'd bet you have not seen this exception more than once. Lucky moment to catch such race condition. Double locking is bad: if (method == null) { try { ! method = XMLDataObject.class.getDeclaredMethod ("createInfoLookup", new Class[] { // NOI18N XMLDataObject.class, XMLDataObject.Info.class }); ! method.setAccessible (true); } catch (Exception ex) { ErrorManager.getDefault ().notify (ex); return null; --- 192,203 ---- // well, it is a wormhole, but just for default compatibility if (method == null) { try { ! java.lang.reflect.Method m = XMLDataObject.class.getDeclaredMethod ("createInfoLookup", new Class[] { // NOI18N XMLDataObject.class, XMLDataObject.Info.class }); ! m.setAccessible (true); ! method = m; |