Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 201731 Details for
Bug 161129
[batch][compiler] Add -warn:all to report all warnings
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Proposed fix
patch_161129.txt (text/plain), 1.66 KB, created by
Olivier Thomann
on 2011-08-18 13:22:54 EDT
(
hide
)
Description:
Proposed fix
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2011-08-18 13:22:54 EDT
Size:
1.66 KB
patch
obsolete
>### 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++) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 161129
:
201731
|
201734