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 - Incorrect classloader used to define JMI interface/impls
Summary: Incorrect classloader used to define JMI interface/impls
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: Martin Matula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-02-12 17:57 UTC by Svata Dedic
Modified: 2005-07-27 08:37 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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