On Windows platform (and probably always) JarEntry.getName() uses '/' as
separator, not File.separatorChar '\'. So, the following code fails when
trying to convert path to class name:
com.google.devtools.simple.compiler.RuntimeLoader:537:
while (jarEntries.hasMoreElements()) {
JarEntry entry = jarEntries.nextElement();
String name = entry.getName();
if (name.endsWith(CLASSFILE_EXTENSION)) {
analyzeClassFile(name.substring(0,
name.length() -
CLASSFILE_EXTENSION.length()).replace(File.separatorChar, '.'));
}
}
And Simple compiler doesn't work on Windows.
Original issue reported on code.google.com by demakov@gmail.com on 29 Jul 2009 at 6:38
Original issue reported on code.google.com by
demakov@gmail.com
on 29 Jul 2009 at 6:38