Compiling from source fails
When I try to compile JastAdd from source (tried master or 2.3.4 ) I get the following error message from the gradle script:
Task :compileJava FAILED
error: Source option 6 is no longer supported. Use 7 or later.
error: Target option 6 is no longer supported. Use 7 or later.
When I change the script to use 1.7 or higher a strange API conflict is reported:
C:\…\jastadd2\src\gen\org\jastadd\ast\AST\Ast.java:53: error: incompatible types: ASTGrammar cannot be converted to Grammar
{if (true) return jjtn000;}
^
C:\…\jastadd2\src\gen\org\jastadd\ast\AST\Ast.java:251: error: cannot find symbol
jjtn000.setFileName(fileName);
^
symbol: method setFileName(String)
location: variable jjtn000 of type ASTASTDecl…
I use OpenJDK 15.
Comments (3)
-
-
AFAIK we have not tried building JastAdd with Java 15, so it might not work on Java 15.
-
reporter I used Gradlew. I later discovered that at least the Ant build works when changing the source to 1.7. However, this still produces a warning that 1.7 is deprecated too.
- Log in to comment
What command did you use to build JastAdd? Gradlew or Ant?