You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: plexus-compilers/plexus-compiler-javac/src/main/java/org/codehaus/plexus/compiler/javac/JavacCompiler.java
Copy file name to clipboardExpand all lines: plexus-compilers/plexus-compiler-javac/src/test/java/org/codehaus/plexus/compiler/javac/AbstractJavacCompilerTest.java
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -74,6 +74,17 @@ protected int expectedErrors()
74
74
75
75
protectedintexpectedWarnings()
76
76
{
77
+
if (getJavaVersion().contains("1.8")){
78
+
// lots of new warnings about obsoletions for future releases
79
+
return30;
80
+
}
81
+
82
+
if ( "1.6".compareTo( getJavaVersion() ) < 0 )
83
+
{
84
+
// with 1.7 some warning with bootstrap class path not set in conjunction with -source 1.3
Copy file name to clipboardExpand all lines: plexus-compilers/plexus-compiler-javac/src/test/java/org/codehaus/plexus/compiler/javac/ErrorMessageParserTest.java
+137-9Lines changed: 137 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -623,14 +623,17 @@ public void testCRLF_windows()
".java", CompilerMessage.Kind.WARNING, 23, 27, 23, 30, "[divzero] division by zero"),
838
+
compilerErrors.get(1));
839
+
}
840
+
841
+
publicfinalvoidtestIssue37() throwsIOException {
842
+
finalStringerror =
843
+
"warning: [path] bad path element \"d:\\maven_repo\\.m2\\repository\\org\\ow2\\asm\\asm-xml\\5.0.3\\asm-5.0.3.jar\": no such file or directory" + EOL +
844
+
"warning: [path] bad path element \"d:\\maven_repo\\.m2\\repository\\org\\ow2\\asm\\asm-xml\\5.0.3\\asm-util-5.0.3.jar\": no such file or directory" + EOL +
845
+
"warning: [options] bootstrap class path not set in conjunction with -source 1.7" + EOL +
846
+
"3 warnings" + EOL +
847
+
"An exception has occurred in the compiler (9). Please file a bug against the Java compiler via the Java bug reporting page (http://bugreport.java.com) after checking the Bug Database (http://bugs.java.com) for duplicates. Include your program and the following diagnostic in your report. Thank you." + EOL +
assertEquivalent(newCompilerMessage("warning: [path] bad path element \"d:\\maven_repo\\.m2\\repository\\org\\ow2\\asm\\asm-xml\\5.0.3\\asm-util-5.0.3.jar\": no such file or directory",
Copy file name to clipboardExpand all lines: plexus-compilers/plexus-compiler-javac/src/test/java/org/codehaus/plexus/compiler/javac/JavaxToolsCompilerTest.java
-17Lines changed: 0 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -25,21 +25,4 @@ public class JavaxToolsCompilerTest
25
25
extendsAbstractJavacCompilerTest
26
26
{
27
27
// no op default is to javax.tools if available
28
-
29
-
protectedintexpectedWarnings()
30
-
{
31
-
if (getJavaVersion().contains("1.8")){
32
-
// lots of new warnings about obsoletions for future releases
0 commit comments