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 17522 Details for
Bug 83847
[compiler][1.5] can create annonymous class of an enum
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Apply on QualifiedAllocationExpression
patch_for_83847.txt (text/plain), 1.02 KB, created by
Olivier Thomann
on 2005-01-27 14:46:00 EST
(
hide
)
Description:
Apply on QualifiedAllocationExpression
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2005-01-27 14:46:00 EST
Size:
1.02 KB
patch
obsolete
>Index: QualifiedAllocationExpression.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/QualifiedAllocationExpression.java,v >retrieving revision 1.61 >diff -u -r1.61 QualifiedAllocationExpression.java >--- QualifiedAllocationExpression.java 7 Jan 2005 17:53:59 -0000 1.61 >+++ QualifiedAllocationExpression.java 27 Jan 2005 19:44:17 -0000 >@@ -318,7 +318,10 @@ > } > scope.problemReporter().typeMismatchError(enclosingInstanceType, expectedType, this.enclosingInstance); > return this.resolvedType = receiverType; >- } >+ } else if (receiverType.isEnum() && type != null) { >+ scope.problemReporter().cannotInstantiate(type, receiverType); >+ return this.resolvedType = receiverType; >+ } > > if (receiverType.isTypeVariable()) { > receiverType = new ProblemReferenceBinding(receiverType.sourceName(), (ReferenceBinding)receiverType, ProblemReasons.IllegalSuperTypeVariable);
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 83847
:
17521
| 17522