[vmkit-commits] [vmkit] r96205 - /vmkit/trunk/lib/J3/VMCore/Jnjvm.cpp

Nicolas Geoffray nicolas.geoffray at lip6.fr
Sun Feb 14 17:38:31 PST 2010


Author: geoffray
Date: Sun Feb 14 19:38:31 2010
New Revision: 96205

URL: http://llvm.org/viewvc/llvm-project?rev=96205&view=rev
Log:
Set the classpath to only the jar file when -jar is given.


Modified:
    vmkit/trunk/lib/J3/VMCore/Jnjvm.cpp

Modified: vmkit/trunk/lib/J3/VMCore/Jnjvm.cpp
URL: http://llvm.org/viewvc/llvm-project/vmkit/trunk/lib/J3/VMCore/Jnjvm.cpp?rev=96205&r1=96204&r2=96205&view=diff

==============================================================================
--- vmkit/trunk/lib/J3/VMCore/Jnjvm.cpp (original)
+++ vmkit/trunk/lib/J3/VMCore/Jnjvm.cpp Sun Feb 14 19:38:31 2010
@@ -797,11 +797,8 @@
 void ClArgumentsInfo::extractClassFromJar(Jnjvm* vm, int argc, char** argv, 
                                           int i) {
   jarFile = argv[i];
-  uint32 size = 2 + strlen(vm->classpath) + strlen(jarFile);
-  char* temp = (char*)vm->allocator.Allocate(size, "jar file");
 
-  sprintf(temp, "%s:%s", vm->classpath, jarFile);
-  vm->setClasspath(temp);
+  vm->setClasspath(jarFile);
   
   ArrayUInt8* bytes = Reader::openFile(vm->bootstrapLoader, jarFile, true);
 





More information about the vmkit-commits mailing list