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 16243 Details for
Bug 79848
[1.5][annot] Array of java.lang.Class is a legal value for the type of an annotation type member declaration
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Apply on HEAD
patch_79848.txt (text/plain), 1.26 KB, created by
Olivier Thomann
on 2004-11-30 23:45:39 EST
(
hide
)
Description:
Apply on HEAD
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2004-11-30 23:45:39 EST
Size:
1.26 KB
patch
obsolete
>Index: MemberValuePair.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/MemberValuePair.java,v >retrieving revision 1.5 >diff -u -r1.5 MemberValuePair.java >--- MemberValuePair.java 30 Nov 2004 12:55:02 -0000 1.5 >+++ MemberValuePair.java 1 Dec 2004 04:44:11 -0000 >@@ -103,7 +103,17 @@ > } > break checkAnnotationMethodType; > case T_JavaLangClass : >- if (!(this.value instanceof ClassLiteralAccess)) { >+ if (this.value instanceof ArrayInitializer) { >+ ArrayInitializer initializer = (ArrayInitializer) this.value; >+ final Expression[] expressions = initializer.expressions; >+ if (expressions != null) { >+ for (int i =0, max = expressions.length; i < max; i++) { >+ if (!(expressions[i] instanceof ClassLiteralAccess)) { >+ scope.problemReporter().annotationValueMustBeClassLiteral(this.binding.declaringClass, this.name, expressions[i]); >+ } >+ } >+ } >+ } else if (!(this.value instanceof ClassLiteralAccess)) { > scope.problemReporter().annotationValueMustBeClassLiteral(this.binding.declaringClass, this.name, this.value); > } > break checkAnnotationMethodType;
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 79848
: 16243