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 16041 - ProxyClassLoader does not implement findResources
Summary: ProxyClassLoader does not implement findResources
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Module System (show other bugs)
Version: 3.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: Petr Nejedly
URL:
Keywords:
Depends on:
Blocks: 14722
  Show dependency tree
 
Reported: 2001-10-01 08:21 UTC by Jaroslav Tulach
Modified: 2008-12-23 08:30 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 Jaroslav Tulach 2001-10-01 08:21:56 UTC
ProxyClassLoader.findResources should probably call simpleFindResources
according to javadoc, but it does not. I have changed line 238:

-Enumeration e = super.findResources (name);
+Enumeration e = new SequenceEnumeration (super.findResources (name),
simpleFindResources (name));

and the code started to work. Please review and fix this.
Comment 1 Petr Nejedly 2001-10-01 15:36:34 UTC
Fixed a bit differently:
-Enumeration e = super.findResources (name);
+Enumeration e = simpleFindResources (name);

and modified default implementation of simpleFindResources
to delegate to super.findResources (which will return
empty enumeration anyway)
JarClassLoader implements simpleFindResources (hopefully)
correctly, it was "only" not called from anywhere...
Comment 2 Quality Engineering 2003-07-01 15:57:55 UTC
Resolved for 3.4.x or earlier, no new info since then -> verified.

Comment 3 Quality Engineering 2003-07-01 16:38:50 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.