ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 1659] New - ClassLoader incomplete
Date Tue, 08 May 2001 16:03:35 GMT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1659

*** shadow/1659	Tue May  8 09:03:35 2001
--- shadow/1659.tmp.363	Tue May  8 09:03:35 2001
***************
*** 0 ****
--- 1,30 ----
+ +============================================================================+
+ | ClassLoader incomplete                                                     |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 1659                        Product: Ant                     |
+ |       Status: NEW                         Version: 1.1                     |
+ |   Resolution:                            Platform: All                     |
+ |     Severity: Normal                   OS/Version: All                     |
+ |     Priority:                           Component: Core                    |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: ant-dev@jakarta.apache.org                                   |
+ |  Reported By: joan@profilium.com                                           |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ While testing another ClassLoader-related bug, I have bumped into a missing 
+ feature in AntClassLoader.java: Ant implements its own ClassLoader, but this 
+ ClassLoader doesnt correctly override all the abstract class methods, 
+ expecially the getResource(String). It correctly overrides getResourceAsStream
+ (String) by searching the current "project" classpath. getResource(String) 
+ should do the same.
+ 
+ This method is particularly useful for configuration file placed in the 
+ classpath of the application, and when not correctly implemented, it does 
+ create a serious problem with JUnit for example, which relies on this 
+ ClassLoader to run its tests, unless forked in another JVM (but then it crashes 
+ somewhere else: http://nagoya.betaversion.org/bugzilla/show_bug.cgi?id=1658).
+ 
+ Thanks!

Mime
View raw message