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 40896 Details for
Bug 140318
AST: Invalid annotation binding for incomplete code
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Last patch
patch_140318.txt (text/plain), 1.71 KB, created by
Olivier Thomann
on 2006-05-09 21:02:24 EDT
(
hide
)
Description:
Last patch
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2006-05-09 21:02:24 EDT
Size:
1.71 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core >Index: compiler/org/eclipse/jdt/internal/compiler/ast/Annotation.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/Annotation.java,v >retrieving revision 1.53 >diff -u -r1.53 Annotation.java >--- compiler/org/eclipse/jdt/internal/compiler/ast/Annotation.java 2 Feb 2006 21:32:40 -0000 1.53 >+++ compiler/org/eclipse/jdt/internal/compiler/ast/Annotation.java 10 May 2006 00:54:46 -0000 >@@ -224,21 +224,16 @@ > > if (this.compilerAnnotation != null) > return this.resolvedType; >- boolean initializeCompilerAnnotation = true; // scope.compilerOptions().storeAnnotations; > this.constant = Constant.NotAConstant; > > TypeBinding typeBinding = this.type.resolveType(scope); > if (typeBinding == null) { >- if (initializeCompilerAnnotation) >- this.compilerAnnotation = new AnnotationBinding(this); > return null; > } > this.resolvedType = typeBinding; > // ensure type refers to an annotation type > if (!typeBinding.isAnnotationType()) { > scope.problemReporter().typeMismatchError(typeBinding, scope.getJavaLangAnnotationAnnotation(), this.type); >- if (initializeCompilerAnnotation) >- this.compilerAnnotation = new AnnotationBinding(this); > return null; > } > >@@ -302,7 +297,7 @@ > pairs[i].resolveTypeExpecting(scope, null); // resilient > } > } >- if (initializeCompilerAnnotation) >+ if (scope.compilerOptions().storeAnnotations) > this.compilerAnnotation = new AnnotationBinding(this); > // recognize standard annotations ? > long tagBits = detectStandardAnnotation(scope, annotationType, valueAttribute);
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 140318
:
40509
|
40510
|
40727
| 40896