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 142317 Details for
Bug 210385
[compiler] ProblemReporter#getProblemCategory misbehaves when passed ProblemSeverities.Ignore as severity parameter
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Proposed fix
patch_210385.txt (text/plain), 3.09 KB, created by
Olivier Thomann
on 2009-07-22 15:59:52 EDT
(
hide
)
Description:
Proposed fix
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2009-07-22 15:59:52 EDT
Size:
3.09 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core >Index: compiler/org/eclipse/jdt/internal/compiler/problem/ProblemReporter.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/problem/ProblemReporter.java,v >retrieving revision 1.390 >diff -u -r1.390 ProblemReporter.java >--- compiler/org/eclipse/jdt/internal/compiler/problem/ProblemReporter.java 27 Feb 2009 01:29:00 -0000 1.390 >+++ compiler/org/eclipse/jdt/internal/compiler/problem/ProblemReporter.java 22 Jul 2009 20:01:12 -0000 >@@ -439,7 +439,7 @@ > case CompilerOptions.AutoBoxing : > case CompilerOptions.MissingOverrideAnnotation : > case CompilerOptions.MissingDeprecatedAnnotation : >- case CompilerOptions.ParameterAssignment : >+ case CompilerOptions.ParameterAssignment : > return CategorizedProblem.CAT_CODE_STYLE; > > case CompilerOptions.MaskedCatchBlock : >@@ -467,7 +467,7 @@ > case CompilerOptions.LocalVariableHiding : > case CompilerOptions.FieldHiding : > case CompilerOptions.TypeHiding : >- return CategorizedProblem.CAT_NAME_SHADOWING_CONFLICT; >+ return CategorizedProblem.CAT_NAME_SHADOWING_CONFLICT; > > case CompilerOptions.UnusedLocalVariable : > case CompilerOptions.UnusedArgument : >@@ -480,7 +480,7 @@ > case CompilerOptions.UnusedWarningToken : > case CompilerOptions.UnusedLabel : > case CompilerOptions.RedundantSuperinterface : >- return CategorizedProblem.CAT_UNNECESSARY_CODE; >+ return CategorizedProblem.CAT_UNNECESSARY_CODE; > > case CompilerOptions.UsingDeprecatedAPI : > return CategorizedProblem.CAT_DEPRECATION; >@@ -495,11 +495,11 @@ > case CompilerOptions.MissingJavadocTags : > case CompilerOptions.InvalidJavadoc : > case CompilerOptions.InvalidJavadoc|CompilerOptions.UsingDeprecatedAPI : >- return CategorizedProblem.CAT_JAVADOC; >+ return CategorizedProblem.CAT_JAVADOC; > > case CompilerOptions.UncheckedTypeOperation : > case CompilerOptions.RawTypeReference : >- return CategorizedProblem.CAT_UNCHECKED_RAW; >+ return CategorizedProblem.CAT_UNCHECKED_RAW; > > case CompilerOptions.ForbiddenReference : > case CompilerOptions.DiscouragedReference : >Index: compiler/org/eclipse/jdt/internal/compiler/problem/ProblemSeverities.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/problem/ProblemSeverities.java,v >retrieving revision 1.15 >diff -u -r1.15 ProblemSeverities.java >--- compiler/org/eclipse/jdt/internal/compiler/problem/ProblemSeverities.java 7 Mar 2009 01:08:10 -0000 1.15 >+++ compiler/org/eclipse/jdt/internal/compiler/problem/ProblemSeverities.java 22 Jul 2009 20:01:12 -0000 >@@ -12,7 +12,7 @@ > > public interface ProblemSeverities { > >- final int Ignore = -1; // during handling only >+ final int Ignore = 256; // during handling only > final int Warning = 0; // during handling only > > final int Error = 1; // when bit is set: problem is error, if not it is a warning
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 210385
: 142317