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 17309 Details for
Bug 83219
NPE in ProblemReporter with duplicate abstract enum methods
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Apply on HEAD
patch_83219.txt (text/plain), 1.15 KB, created by
Olivier Thomann
on 2005-01-19 16:35:22 EST
(
hide
)
Description:
Apply on HEAD
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2005-01-19 16:35:22 EST
Size:
1.15 KB
patch
obsolete
>Index: compiler/org/eclipse/jdt/internal/compiler/ast/TypeDeclaration.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/TypeDeclaration.java,v >retrieving revision 1.94 >diff -u -r1.94 TypeDeclaration.java >--- compiler/org/eclipse/jdt/internal/compiler/ast/TypeDeclaration.java 18 Jan 2005 03:28:03 -0000 1.94 >+++ compiler/org/eclipse/jdt/internal/compiler/ast/TypeDeclaration.java 19 Jan 2005 21:32:37 -0000 >@@ -1001,8 +1001,9 @@ > if (kind() == IGenericType.ENUM_DECL && this.binding.isAbstract()) { > if (!hasEnumConstants || hasEnumConstantsWithoutBody) { > for (int i = 0, count = this.methods.length; i < count; i++) { >- if (this.methods[i].isAbstract()) { >- this.scope.problemReporter().enumAbstractMethodMustBeImplemented(this.methods[i]); >+ final AbstractMethodDeclaration methodDeclaration = this.methods[i]; >+ if (methodDeclaration.isAbstract() && methodDeclaration.binding != null) { >+ this.scope.problemReporter().enumAbstractMethodMustBeImplemented(methodDeclaration); > } > } > }
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 83219
: 17309