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 234033 - org.netbeans.NetigsoLoader should override loadClass(String, boolean)
Summary: org.netbeans.NetigsoLoader should override loadClass(String, boolean)
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Netigso (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-06 15:55 UTC by Tomas Pavek
Modified: 2013-09-01 01:27 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 Tomas Pavek 2013-08-06 15:55:53 UTC
In the bootstrap module, org.netbeans.NetigsoLoader overrides the ClassLoader's loadClass(String) method to delegate to other classloader. This does not work when the NetigsoLoader is used as a parent classloader - because java.lang.ClassLoader calls parent.loadClass(name, false), i.e. the other loadClass method that is not overriden in NetigsoLoader.

This causes a problem in JDev when trying to load classes from NetBeans modules wrapped as OSGi bundles.
Comment 1 Jaroslav Tulach 2013-08-19 10:59:10 UTC
I have not managed to simulate the problem with an OSGi container. However I created direct unit test to verify loadClass(String,boolean) delegates correctly.

ergonomics#cdab9728b41a
Comment 2 Quality Engineering 2013-09-01 01:27:11 UTC
Integrated into 'main-silver', will be available in build *201309010001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/cdab9728b41a
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #234033: Delegate loadClass(String,boolean)