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 40608 Details for
Bug 127766
[1.5][compiler] inconsistent treatment of explicit subclasses of Enum
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Proposed fix
patch_127766.txt (text/plain), 1.17 KB, created by
Olivier Thomann
on 2006-05-08 12:12:00 EDT
(
hide
)
Description:
Proposed fix
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2006-05-08 12:12:00 EDT
Size:
1.17 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core >Index: compiler/org/eclipse/jdt/internal/compiler/ast/QualifiedAllocationExpression.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/QualifiedAllocationExpression.java,v >retrieving revision 1.76 >diff -u -r1.76 QualifiedAllocationExpression.java >--- compiler/org/eclipse/jdt/internal/compiler/ast/QualifiedAllocationExpression.java 28 Mar 2006 20:29:57 -0000 1.76 >+++ compiler/org/eclipse/jdt/internal/compiler/ast/QualifiedAllocationExpression.java 8 May 2006 16:06:42 -0000 >@@ -342,6 +342,9 @@ > // insert anonymous type in scope > scope.addAnonymousType(this.anonymousType, (ReferenceBinding) receiverType); > this.anonymousType.resolve(scope); >+ if (this.superTypeBinding.erasure().id == T_JavaLangEnum) { >+ scope.problemReporter().cannotExtendEnum(this.anonymousType.binding, this.type, this.superTypeBinding); >+ } > > if ((receiverType.tagBits & TagBits.HasDirectWildcard) != 0) { > scope.problemReporter().superTypeCannotUseWildcard(anonymousType.binding, this.type, receiverType);
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 127766
: 40608 |
40609