diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/src/org/aspectj/systemtest/apt/AptTests.java | 7 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/apt/apt-spec.xml | 5 |
2 files changed, 10 insertions, 2 deletions
diff --git a/tests/src/org/aspectj/systemtest/apt/AptTests.java b/tests/src/org/aspectj/systemtest/apt/AptTests.java index af8df5e8c..bf9c53916 100644 --- a/tests/src/org/aspectj/systemtest/apt/AptTests.java +++ b/tests/src/org/aspectj/systemtest/apt/AptTests.java @@ -13,6 +13,7 @@ package org.aspectj.systemtest.apt; import junit.framework.Test; import org.aspectj.apache.bcel.classfile.Method; import org.aspectj.testing.XMLBasedAjcTestCase; +import org.aspectj.util.LangUtil; import java.io.File; @@ -24,6 +25,9 @@ import java.io.File; public class AptTests extends XMLBasedAjcTestCase { public void testAptWithSpecifiedProcessor() { + if (LangUtil.is19VMOrGreater()) { + return; + } runTest("annotation processing with specified processor"); } @@ -31,6 +35,9 @@ public class AptTests extends XMLBasedAjcTestCase { * SPI - http://docs.oracle.com/javase/tutorial/sound/SPI-intro.html */ public void testAptUsingSPI() { + if (LangUtil.is19VMOrGreater()) { + return; + } runTest("annotation processing in action using SPI"); } diff --git a/tests/src/org/aspectj/systemtest/apt/apt-spec.xml b/tests/src/org/aspectj/systemtest/apt/apt-spec.xml index 703e24fc5..0ce327c49 100644 --- a/tests/src/org/aspectj/systemtest/apt/apt-spec.xml +++ b/tests/src/org/aspectj/systemtest/apt/apt-spec.xml @@ -15,6 +15,7 @@ } } --> + <!-- believe fails on JDK9 because of split packages and unable to find @Generated --> <compile options="-1.8 -processor test.SimpleProcessor -s generated -showWeaveInfo" files="Some.java" classpath="annotation_processor.jar" outjar="code.jar"> <message kind="weave" @@ -42,12 +43,12 @@ - {className}Callbacks.java - this file contains callback interfaces for methods annotated with @Event. Example: public final class SomeCallbacks { public interface OnMethod1 { - void changed(Some emmiter); + void changed(Some emitter); } } --> - <!--apt_service_description.jar contains only SPI descrition file - META-INF/services/javax.annotation.processing.Processor--> + <!--apt_service_description.jar contains only SPI description file - META-INF/services/javax.annotation.processing.Processor--> <compile options="-1.8 -s generated -showWeaveInfo" files="Some.java" classpath="annotation_processor.jar;apt_service_description.jar" outjar="code.jar"> <message kind="weave" |