-
I get the same error when I don't use a package path like its done in the example files (package Foo).
Is there any existing workaround?.
2008-12-15 09:17:29 UTC by nobody
-
Yes, I know that this post is 1 year old but I will contribute with my 5 cents.
The error is due to the fact that jass expect the classes to belong to a package. Therefore, if you (like me!) try to run the "Getting Started" example with the main class from the default package you will get the index out of range. In fact the problem is due to the following jass lines from...
2008-10-17 09:51:40 UTC by nobody
-
riejo committed patchset 4 of module jass.modern.eclipse to the Modern Jass CVS repository, changing 1 files.
2008-02-16 18:29:50 UTC by riejo
-
riejo committed patchset 10 of module jass.modern.core to the Modern Jass CVS repository, changing 70 files.
2008-02-16 18:29:41 UTC by riejo
-
riejo committed patchset 9 of module jass.modern.core to the Modern Jass CVS repository, changing 8 files.
2007-12-11 18:54:44 UTC by riejo
-
riejo committed patchset 8 of module jass.modern.core to the Modern Jass CVS repository, changing 3 files.
2007-12-04 21:56:59 UTC by riejo
-
riejo committed patchset 7 of module jass.modern.core to the Modern Jass CVS repository, changing 1 files.
2007-11-25 22:55:31 UTC by riejo
-
riejo committed patchset 6 of module jass.modern.core to the Modern Jass CVS repository, changing 26 files.
2007-11-25 22:28:55 UTC by riejo
-
riejo committed patchset 3 of module jass.modern.eclipse to the Modern Jass CVS repository, changing 10 files.
2007-11-25 22:27:11 UTC by riejo
-
When I try to use Modern Jass I get the following error:
An annotation processor threw an uncaught exception.
Consult the following stack trace for details.
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1938)
at jass.modern.core.compile.ContractJavaFile$ContractPrinter.visit(ContractJavaFile.java:214)
2007-10-18 00:38:48 UTC by nobody