Skip to content
This repository has been archived by the owner on Apr 21, 2023. It is now read-only.

Commit

Permalink
Merge pull request #946 from eclipse/cd_java11
Browse files Browse the repository at this point in the history
[eclipse-xtext/xtext#1182] added support for java 11 as target
  • Loading branch information
cdietrich authored Jan 28, 2019
2 parents 21f3c2b + 48b44a1 commit cd8c473
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@ public void testToJdtClassFileConstant() {
} catch (NoSuchFieldException | IllegalArgumentException | IllegalAccessException | SecurityException e) {
// ok
}
try {
long value = ClassFileConstants.class.getField("JDK11").getLong(null);
assertEquals(value, JavaVersion.JAVA11.toJdtClassFileConstant());
} catch (NoSuchFieldException | IllegalArgumentException | IllegalAccessException | SecurityException e) {
System.err.println("ooops");
// ok
}
}

}

0 comments on commit cd8c473

Please sign in to comment.