[vmkit-commits] [vmkit] r61867 - /vmkit/trunk/lib/JnJVM/Classpath/ClasspathVMThrowable.cpp
Nicolas Geoffray
nicolas.geoffray at lip6.fr
Wed Jan 7 10:02:06 PST 2009
Author: geoffray
Date: Wed Jan 7 12:02:06 2009
New Revision: 61867
URL: http://llvm.org/viewvc/llvm-project?rev=61867&view=rev
Log:
Do not try to find the attributes of a vmjc'ed file.
Modified:
vmkit/trunk/lib/JnJVM/Classpath/ClasspathVMThrowable.cpp
Modified: vmkit/trunk/lib/JnJVM/Classpath/ClasspathVMThrowable.cpp
URL: http://llvm.org/viewvc/llvm-project/vmkit/trunk/lib/JnJVM/Classpath/ClasspathVMThrowable.cpp?rev=61867&r1=61866&r2=61867&view=diff
==============================================================================
--- vmkit/trunk/lib/JnJVM/Classpath/ClasspathVMThrowable.cpp (original)
+++ vmkit/trunk/lib/JnJVM/Classpath/ClasspathVMThrowable.cpp Wed Jan 7 12:02:06 2009
@@ -69,7 +69,8 @@
Attribut* sourceAtt = cl->lookupAttribut(Attribut::sourceFileAttribut);
- if (sourceAtt) {
+ // We don't have the bytes if the class was vmjc'ed.
+ if (sourceAtt && cl->getBytes()) {
Reader reader(sourceAtt, cl->getBytes());
uint16 index = reader.readU2();
sourceName = vm->internalUTF8ToStr(cl->getConstantPool()->UTF8At(index));
More information about the vmkit-commits
mailing list