diff options
Diffstat (limited to 'tests/src/test/java/org/aspectj/systemtest/ajc196/Java14PreviewFeaturesTests.java')
-rw-r--r-- | tests/src/test/java/org/aspectj/systemtest/ajc196/Java14PreviewFeaturesTests.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/src/test/java/org/aspectj/systemtest/ajc196/Java14PreviewFeaturesTests.java b/tests/src/test/java/org/aspectj/systemtest/ajc196/Java14PreviewFeaturesTests.java index 6c31f0af2..24b02101e 100644 --- a/tests/src/test/java/org/aspectj/systemtest/ajc196/Java14PreviewFeaturesTests.java +++ b/tests/src/test/java/org/aspectj/systemtest/ajc196/Java14PreviewFeaturesTests.java @@ -17,10 +17,11 @@ import junit.framework.Test; * @author Alexander Kriegisch */ public class Java14PreviewFeaturesTests extends XMLBasedAjcTestCaseForJava14Only { + private static final Constants.ClassFileVersion classFileVersion = Constants.ClassFileVersion.of(14); public void testRecords() { runTest("simple record"); - checkVersion("Person", Constants.MAJOR_14, Constants.PREVIEW_MINOR_VERSION); + checkVersion("Person", classFileVersion.MAJOR, classFileVersion.PREVIEW_MINOR); } public void testRecords2() { |