aboutsummaryrefslogtreecommitdiffstats
path: root/src/test
diff options
context:
space:
mode:
authorchibash <chiba@javassist.org>2016-08-01 01:40:51 +0900
committerchibash <chiba@javassist.org>2016-08-01 01:40:51 +0900
commit4ed22b0f7fab7c237d732e446ae43ee9af112df4 (patch)
treebe417918c827c48f638fca661740d817163fa915 /src/test
parent8b4d1e62750f7b5785f6df3258aced6314b82057 (diff)
downloadjavassist-4ed22b0f7fab7c237d732e446ae43ee9af112df4.tar.gz
javassist-4ed22b0f7fab7c237d732e446ae43ee9af112df4.zip
modifies a test case. Now all the test cases run successfully with Java 9 EA.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/javassist/JvstTest4.java11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/test/javassist/JvstTest4.java b/src/test/javassist/JvstTest4.java
index ac4c1e3b..c556c846 100644
--- a/src/test/javassist/JvstTest4.java
+++ b/src/test/javassist/JvstTest4.java
@@ -872,10 +872,17 @@ public class JvstTest4 extends JvstTestRoot {
CtClass cc = sloader.get("test4.JIRA181");
CtField field = cc.getField("aField");
String s = field.getAnnotation(test4.JIRA181.Condition.class).toString();
- assertEquals("@test4.JIRA181$Condition(condition=test4.JIRA181<T>.B.class)", s);
+ if (ClassFile.MAJOR_VERSION < ClassFile.JAVA_9)
+ assertEquals("@test4.JIRA181$Condition(condition=test4.JIRA181<T>.B.class)", s);
+ else
+ assertEquals("@test4.JIRA181$Condition(condition=test4.JIRA181.B.class)", s);
+
CtField field2 = cc.getField("aField2");
String s2 = field2.getAnnotation(test4.JIRA181.Condition2.class).toString();
- assertEquals("@test4.JIRA181$Condition2(condition=test4.JIRA181<T>.B[].class)", s2);
+ if (ClassFile.MAJOR_VERSION < ClassFile.JAVA_9)
+ assertEquals("@test4.JIRA181$Condition2(condition=test4.JIRA181<T>.B[].class)", s2);
+ else
+ assertEquals("@test4.JIRA181$Condition2(condition=test4.JIRA181.B[].class)", s2);
}
public void testJIRA195() throws Exception {