瀏覽代碼

Do not run Java 18 preview feature tests with Java 19 JDT Core

Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
tags/V1_9_19
Alexander Kriegisch 1 年之前
父節點
當前提交
6bffb28451
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      testing/src/test/java/org/aspectj/testing/XMLBasedAjcTestCaseForJava18Only.java

+ 2
- 2
testing/src/test/java/org/aspectj/testing/XMLBasedAjcTestCaseForJava18Only.java 查看文件

@Override @Override
public void setUp() throws Exception { public void setUp() throws Exception {
// Activate this block after upgrading to JDT Core Java 19 // Activate this block after upgrading to JDT Core Java 19
/*
throw new IllegalStateException( throw new IllegalStateException(
"These tests need a Java 18 level AspectJ compiler " + "These tests need a Java 18 level AspectJ compiler " +
"(e.g. because they use version-specific preview features). " + "(e.g. because they use version-specific preview features). " +
"This compiler does not support preview features of a previous version anymore." "This compiler does not support preview features of a previous version anymore."
); );
*/
// Activate this block before upgrading to JDT Core Java 19 // Activate this block before upgrading to JDT Core Java 19
/*
if (!LangUtil.is18VMOrGreater() || LangUtil.is19VMOrGreater()) { if (!LangUtil.is18VMOrGreater() || LangUtil.is19VMOrGreater()) {
throw new IllegalStateException( throw new IllegalStateException(
"These tests should be run on Java 18 only " + "These tests should be run on Java 18 only " +
); );
} }
super.setUp(); super.setUp();
*/
} }


} }

Loading…
取消
儲存