### 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.365 diff -u -r1.365 Main.java --- batch/org/eclipse/jdt/internal/compiler/batch/Main.java 28 Jul 2011 17:07:36 -0000 1.365 +++ batch/org/eclipse/jdt/internal/compiler/batch/Main.java 18 Aug 2011 17:20:33 -0000 @@ -2199,6 +2199,10 @@ disableWarnings(); continue; } + if (length == 9 && warningOption.equals("-warn:all")) { //$NON-NLS-1$ + enableAllWarnings(); + continue; + } if (length <= 6) { throw new IllegalArgumentException( this.bind("configure.invalidWarningConfiguration", warningOption)); //$NON-NLS-1$ @@ -2838,6 +2842,20 @@ } this.options.put(CompilerOptions.OPTION_TaskTags, Util.EMPTY_STRING); } +protected void enableAllWarnings() { + Object[] entries = this.options.entrySet().toArray(); + for (int i = 0, max = entries.length; i < max; i++) { + Map.Entry entry = (Map.Entry) entries[i]; + if (!(entry.getKey() instanceof String)) + continue; + if (!(entry.getValue() instanceof String)) + continue; + if (((String) entry.getValue()).equals(CompilerOptions.IGNORE)) { + this.options.put(entry.getKey(), CompilerOptions.WARNING); + } + } + this.options.put(CompilerOptions.OPTION_TaskTags, Util.EMPTY_STRING); +} protected void disableErrors() { Object[] entries = this.options.entrySet().toArray(); for (int i = 0, max = entries.length; i < max; i++) {