[cp-patches] [RFA/JDWP] Fix ReferenceType.SourceFile

Kyle Galloway kgallowa at redhat.com
Wed Apr 11 15:05:33 UTC 2007

Currently, if a source file is not found, this will pass null to 
writeString, which will cause an NPE, crashing the communication thread 
causing the VM to stop responding to commands from the debugger.  This 
patch fixes this by checking if the found source file string is null, 
and if so, throwing an AbsentInformationException, causing the VM to 
report it could not find the source file.

2007-04-11  Kyle Galloway  <kgallowa at redhat.com>

    * gnu/classpath/jdwp/processor/ReferenceTypeCommandSet.java
    (executeSourceFile): Throw an exception if no source file was found.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: sourcefile.patch
Type: text/x-patch
Size: 1270 bytes
Desc: not available
Url : http://developer.classpath.org/pipermail/classpath-patches/attachments/20070411/9396a509/sourcefile.bin

More information about the Classpath-patches mailing list