[Bug 66] ClassLoader.getSystemResources returns emptyenumeration(sablevm1 .1.6)
| Newsgroups | gmane.comp.java.vm.sablevm.bugs |
|---|---|
| Message-ID | <[email protected]> |
http://sablevm.org/bugs/show_bug.cgi?id=66 [email protected] changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|[email protected] |[email protected] ------- Additional Comments From [email protected] 2004-10-12 19:46 ------- The problem is that implementation of getResources and findResources always return empty enumerations. There's a (partial) patch proposed in this thread: http://lists.gnu.org/archive/html/classpath-patches/2004-10/msg00079.html but I am not convinced this is the right solution. In particular it seems to assume an uncompressed classpath. And also, it's only for boot.class.path, not for resources that are available in regular classpath. And yet, we do not want to read boot.class.path jars with java - for performance reasons. This should not be too hard to implement the pieces the right way, though. Support for resources enumeration on boot.class.path will require native help (returning array of strings and putting them in an enumeration object). For class.path - it seems to me that our system class loader (gnu.java.lang.SystemClassLoader) is missing findResources implementation. I think systemFindResource could be extended to look for multiple resources, not just the first one. Thanks for reporting this problem, we should be able to fix it now that we know what's missing. ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. You are the QA contact for the bug, or are watching the QA contact.