### Eclipse Workspace Patch 1.0 #P org.eclipse.jdt.core Index: batch/org/eclipse/jdt/internal/compiler/batch/Main.java =================================================================== RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/batch/org/eclipse/jdt/internal/compiler/batch/Main.java,v retrieving revision 1.346 diff -u -r1.346 Main.java --- batch/org/eclipse/jdt/internal/compiler/batch/Main.java 7 Oct 2009 14:58:11 -0000 1.346 +++ batch/org/eclipse/jdt/internal/compiler/batch/Main.java 15 Dec 2009 16:44:21 -0000 @@ -2028,6 +2028,11 @@ this.proceedOnError = true; continue; } + if (currentArg.equals("-nonFatalError")) { //$NON-NLS-1$ + mode = DEFAULT; + this.options.put(CompilerOptions.OPTION_FatalOptionalError, CompilerOptions.DISABLED); + continue; + } if (currentArg.equals("-time")) { //$NON-NLS-1$ mode = DEFAULT; this.timing = TIMING_ENABLED; Index: batch/org/eclipse/jdt/internal/compiler/batch/messages.properties =================================================================== RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/batch/org/eclipse/jdt/internal/compiler/batch/messages.properties,v retrieving revision 1.866 diff -u -r1.866 messages.properties --- batch/org/eclipse/jdt/internal/compiler/batch/messages.properties 10 Dec 2009 16:00:06 -0000 1.866 +++ batch/org/eclipse/jdt/internal/compiler/batch/messages.properties 15 Dec 2009 16:44:22 -0000 @@ -217,6 +217,7 @@ \ the log will be a xml file.\n\ \ -proceedOnError do not stop at first error, dumping class files with\n\ \ problem methods\n\ +\ -nonFatalError treat all optional errors as non fatal\n\ \ -verbose enable verbose output\n\ \ -referenceInfo compute reference info\n\ \ -progress show progress (only in -log mode)\n\ #P org.eclipse.jdt.core.tests.compiler Index: src/org/eclipse/jdt/core/tests/compiler/regression/BatchCompilerTest.java =================================================================== RCS file: /cvsroot/eclipse/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/BatchCompilerTest.java,v retrieving revision 1.199 diff -u -r1.199 BatchCompilerTest.java --- src/org/eclipse/jdt/core/tests/compiler/regression/BatchCompilerTest.java 7 Oct 2009 14:58:12 -0000 1.199 +++ src/org/eclipse/jdt/core/tests/compiler/regression/BatchCompilerTest.java 15 Dec 2009 16:44:23 -0000 @@ -1586,6 +1586,7 @@ " the log will be a xml file.\n" + " -proceedOnError do not stop at first error, dumping class files with\n" + " problem methods\n" + + " -nonFatalError treat all optional errors as non fatal\n" + " -verbose enable verbose output\n" + " -referenceInfo compute reference info\n" + " -progress show progress (only in -log mode)\n" +