Trying to fix bug that occurs during maven build on Max OS:

https://github.com/konsoletyper/teavm/issues/12
This commit is contained in:
konsoletyper 2014-09-09 19:37:42 +04:00
parent 0ff2b2a1dc
commit c478e965e4

View File

@ -166,7 +166,7 @@ public class JCLComparisonBuilder {
return false; return false;
} }
int slashIndex = name.lastIndexOf('/'); int slashIndex = name.lastIndexOf('/');
return packages.contains(name.substring(0, slashIndex)); return slashIndex >= 0 && packages.contains(name.substring(0, slashIndex));
} }
private void compareClass(InputStream input) throws IOException { private void compareClass(InputStream input) throws IOException {