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 20473

Summary: Incorrect classloader used to define JMI interface/impls
Product: java Reporter: Svata Dedic <sdedic>
Component: UnsupportedAssignee: Martin Matula <mmatula>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P2    
Version: 3.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description Svata Dedic 2002-02-12 17:57:17 UTC
The MDR module obtains TopManager.systemClassLoader() instance during its
initialization and tries to use this instance forever. But core replaces the
instance (and throws away the old one) whenever the set of modules change. This
caching will sometimes result in spurious ClassCastExceptions - types' FQNs are
OK, but to a different classloader.
Please don't cache the classloader and always use the current systemClassLoader
instance to define new classes.
Comment 1 Martin Matula 2002-05-20 17:35:55 UTC
fixed
Comment 2 Jiri Prox 2005-07-27 08:37:12 UTC
quiet for too long, verified