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

Commit

Permalink
[eclipse-xtext/xtext#1182] added support for java 11 as target
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Dietrich <[email protected]>
  • Loading branch information
cdietrich committed Jan 22, 2019
1 parent 25bb596 commit 48b44a1
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 48b44a1

Please sign in to comment.