Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManoj Palat2016-09-29 04:29:01 +0000
committerManoj Palat2016-09-29 04:29:01 +0000
commit54c0089eb7550e6ac6d29373bc8ca861d71d667e (patch)
tree20dacad09989b28981700c4e7a11a07aed3968cd
parenteefee86fe3107ac96296f1f43db602254dd0a169 (diff)
downloadeclipse.jdt.core-54c0089eb7550e6ac6d29373bc8ca861d71d667e.tar.gz
eclipse.jdt.core-54c0089eb7550e6ac6d29373bc8ca861d71d667e.tar.xz
eclipse.jdt.core-54c0089eb7550e6ac6d29373bc8ca861d71d667e.zip
Test Fix for bug 488662 [1.9] Allow private methods in interfaces
-rw-r--r--org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/MethodVerifyTest.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/MethodVerifyTest.java b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/MethodVerifyTest.java
index 838750ad57..997a1304e8 100644
--- a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/MethodVerifyTest.java
+++ b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/MethodVerifyTest.java
@@ -14323,7 +14323,9 @@ public void testBug500673() {
" ^^^^^^^^^^^^^^^^^^^^^^\n" +
(this.complianceLevel < ClassFileConstants.JDK1_8
? "Illegal modifier for the interface method a; only public & abstract are permitted\n"
- : "Illegal modifier for the interface method a; only public, abstract, default, static and strictfp are permitted\n"
+ : this.complianceLevel < ClassFileConstants.JDK9 ?
+ "Illegal modifier for the interface method a; only public, abstract, default, static and strictfp are permitted\n" :
+ "Illegal modifier for the interface method a; only public, private, abstract, default, static and strictfp are permitted\n"
) +
"----------\n" +
"----------\n" +

Back to the top