Permalink
Browse files

Updated references to JLS4 to JLS8 in Validator_CodeGenJava.ump and P…

…arser_Java.ump since JLS4 has been deprecated.
  • Loading branch information...
1 parent b042e6b commit abb0c9e99b7b5ae702a6068a097446fc837b2fd3 @ahochheiden ahochheiden committed Sep 23, 2016
Showing with 3 additions and 3 deletions.
  1. +1 −1 cruise.umple.validator/src/Validator_CodeGenJava.ump
  2. +2 −2 cruise.umplificator/src/Parser_Java.ump
@@ -63,7 +63,7 @@ class JavaCodeGenValidator {
}
protected static CompilationUnit parse(String source){
- ASTParser parser = ASTParser.newParser(AST.JLS4);
+ ASTParser parser = ASTParser.newParser(AST.JLS8);
parser.setKind(ASTParser.K_COMPILATION_UNIT);
parser.setSource(source.toCharArray()); // set source
// In order to parse 1.7 code, some compiler options need to be set to 1.7
@@ -15,7 +15,7 @@ class JavaParser {
// Parses a complete Java Class
public CompilationUnit parseUnit(String source){
//logger.debug("Parsing Compilation Unit");
- ASTParser parser = ASTParser.newParser(AST.JLS4);
+ ASTParser parser = ASTParser.newParser(AST.JLS8);
parser.setKind(ASTParser.K_COMPILATION_UNIT);
parser.setSource(source.toCharArray()); // set source
// In order to parse 1.7 code, some compiler options need to be set to 1.7
@@ -36,7 +36,7 @@ class JavaParser {
// Parses independent Java body declarations
public ASTNode parseBodyDeclarations(String source){
//logger.debug("Parsing Body Declarations from source");
- ASTParser parser = ASTParser.newParser(AST.JLS4);
+ ASTParser parser = ASTParser.newParser(AST.JLS8);
parser.setKind(ASTParser.K_CLASS_BODY_DECLARATIONS);
parser.setSource(source.toCharArray()); // set source
// In order to parse 1.7 code, some compiler options need to be set to 1.7

0 comments on commit abb0c9e

Please sign in to comment.