Skip to content

Commit

Permalink
Re-add warning at compliance 8-
Browse files Browse the repository at this point in the history
+ test fixes
  • Loading branch information
stephan-herrmann committed Jul 9, 2024
1 parent 5024190 commit 4a8988f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5365,6 +5365,13 @@ public void test135() {
" }\n" +
"}", // =================,
},
(this.complianceLevel >= ClassFileConstants.JDK9 ? "" :
"----------\n" +
"1. WARNING in p\\X.java (at line 2)\n" +
" import p.A;\n" +
" ^^^\n" +
"The type A is deprecated\n"
) +
"----------\n" +
"1. WARNING in p\\X.java (at line 6)\n" +
" A.M2.MM1 mm1 = (A.M2.MM1) o;\n" +
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1222,7 +1222,7 @@ public void testBug545766_JEP211() throws CoreException {
"}"
);
IJavaProject p2 = createJavaProject("P2", new String[] {"src"},
new String[] {"JCL9_LIB"}, "bin", "9");
new String[] {"JCL19_LIB"}, "bin", "9");
IClasspathEntry[] classpath = p2.getRawClasspath();
int length = classpath.length;
System.arraycopy(classpath, 0, classpath = new IClasspathEntry[length+1], 0, length);
Expand Down

0 comments on commit 4a8988f

Please sign in to comment.