[rvm-research] RVM-853: Issue with protocol handlers

View: New views
1 Messages — Rating Filter:   Alert me  

[rvm-research] RVM-853: Issue with protocol handlers

by Suriya Subramanian :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I reported this bug where Jikes RVM is not able to load a custom protocol
handler. http://jira.codehaus.org/browse/RVM-853

I debugged this and there seems to be a bug in
java.net.URL.getURLStreamHandler.
http://cvs.savannah.gnu.org/viewvc/classpath/java/net/URL.java?annotate=1.57&root=classpath

Line 938 sets the value of static field systemClassLoader to
ClassLoader.getSystemClassLoader(). This code is invoked very early when
the application starts and is set to the value of the BootstrapClassLoader.
Is it true that BootstrapClassLoader will not be able to load application
classes, say those that come in a jar file?

I removed the if { } enclosing line 938 and this causes systemClassLoader
to be set to an instance of ApplicationClassLoader (when this function is
invoked a second time) and the program works as expected.

Any comments?

Suriya

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Jikesrvm-researchers mailing list
Jikesrvm-researchers@...
https://lists.sourceforge.net/lists/listinfo/jikesrvm-researchers