Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Loskutov2019-01-08 12:15:48 -0500
committerAndrey Loskutov2019-01-08 12:15:48 -0500
commitd8f1d23c7eed6b262a17a27063fea34b28779e12 (patch)
tree194ced7d3ab72a6b10f1c8ac3fb0064525e15956 /org.eclipse.jdt.compiler.apt.tests
parentbca4b9066a8b48c5fe7734a4ddebb80297960efa (diff)
downloadeclipse.jdt.core-d8f1d23c7eed6b262a17a27063fea34b28779e12.tar.gz
eclipse.jdt.core-d8f1d23c7eed6b262a17a27063fea34b28779e12.tar.xz
eclipse.jdt.core-d8f1d23c7eed6b262a17a27063fea34b28779e12.zip
Bug 543267 - [11] 4 apt tests fail on java 11I20190108-1800
Updated test expectations based on what JDK 11.0.1 has in java.base module-info.java. Change-Id: Ie7e2b0252f9a41af369c31f691b22164219c4c07 Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
Diffstat (limited to 'org.eclipse.jdt.compiler.apt.tests')
-rw-r--r--org.eclipse.jdt.compiler.apt.tests/lib/apttestprocessors8.jarbin246790 -> 246813 bytes
-rw-r--r--org.eclipse.jdt.compiler.apt.tests/processors8/org/eclipse/jdt/compiler/apt/tests/processors/elements/Java9ElementProcessor.java4
2 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.jdt.compiler.apt.tests/lib/apttestprocessors8.jar b/org.eclipse.jdt.compiler.apt.tests/lib/apttestprocessors8.jar
index 1865ddef1a..363e26f2b8 100644
--- a/org.eclipse.jdt.compiler.apt.tests/lib/apttestprocessors8.jar
+++ b/org.eclipse.jdt.compiler.apt.tests/lib/apttestprocessors8.jar
Binary files differ
diff --git a/org.eclipse.jdt.compiler.apt.tests/processors8/org/eclipse/jdt/compiler/apt/tests/processors/elements/Java9ElementProcessor.java b/org.eclipse.jdt.compiler.apt.tests/processors8/org/eclipse/jdt/compiler/apt/tests/processors/elements/Java9ElementProcessor.java
index 50925490a4..0b400a7fd5 100644
--- a/org.eclipse.jdt.compiler.apt.tests/processors8/org/eclipse/jdt/compiler/apt/tests/processors/elements/Java9ElementProcessor.java
+++ b/org.eclipse.jdt.compiler.apt.tests/processors8/org/eclipse/jdt/compiler/apt/tests/processors/elements/Java9ElementProcessor.java
@@ -415,7 +415,7 @@ public class Java9ElementProcessor extends BaseProcessor {
assertNotNull("java.base module null", base);
List<? extends Directive> directives = base.getDirectives();
List<Directive> filterDirective = filterDirective(directives, DirectiveKind.EXPORTS);
- assertEquals("incorrect no of exports", this.isJre11 ? 108 : (this.isJre10 ? 102 : 108) , filterDirective.size());
+ assertEquals("incorrect no of exports", this.isJre11 ? 107 : (this.isJre10 ? 102 : 108) , filterDirective.size());
ExportsDirective pack = null;
for (Directive directive : filterDirective) {
ModuleElement.ExportsDirective exports = (ExportsDirective) directive;
@@ -476,7 +476,7 @@ public class Java9ElementProcessor extends BaseProcessor {
assertNotNull("java.base module null", base);
List<? extends Directive> directives = base.getDirectives();
List<Directive> filterDirective = filterDirective(directives, DirectiveKind.USES);
- assertEquals("incorrect no of uses", 34 , filterDirective.size());
+ assertEquals("incorrect no of uses", this.isJre11? 33 : 34, filterDirective.size());
}
/*
* Test java.base module can be loaded and verify its 'provides' attributes

Back to the top