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 121875 Details for
Bug 214948
Incorrect deprecation warning on annotation instances
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Scope change
scope.txt (text/plain), 1.61 KB, created by
Kent Johnson
on 2009-01-07 16:08:43 EST
(
hide
)
Description:
Scope change
Filename:
MIME Type:
Creator:
Kent Johnson
Created:
2009-01-07 16:08:43 EST
Size:
1.61 KB
patch
obsolete
>Index: compiler/org/eclipse/jdt/internal/compiler/lookup/Scope.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/Scope.java,v >retrieving revision 1.346 >diff -u -r1.346 Scope.java >--- compiler/org/eclipse/jdt/internal/compiler/lookup/Scope.java 5 Dec 2008 12:41:29 -0000 1.346 >+++ compiler/org/eclipse/jdt/internal/compiler/lookup/Scope.java 7 Jan 2009 17:38:42 -0000 >@@ -2809,16 +2809,15 @@ > MethodBinding context = ((AbstractMethodDeclaration)methodScope.referenceContext).binding; > if (context != null && context.isViewedAsDeprecated()) > return true; >- } else { >- SourceTypeBinding type = ((BlockScope)this).referenceType().binding; >+ } else if (methodScope.initializedField != null && methodScope.initializedField.isViewedAsDeprecated()) { > // inside field declaration ? check field modifier to see if deprecated >- if (methodScope.initializedField != null && methodScope.initializedField.isViewedAsDeprecated()) >+ return true; >+ } >+ SourceTypeBinding declaringType = ((BlockScope)this).referenceType().binding; >+ if (declaringType != null) { >+ declaringType.initializeDeprecatedAnnotationTagBits(); // may not have been resolved until then >+ if (declaringType.isViewedAsDeprecated()) > return true; >- if (type != null) { >- type.initializeDeprecatedAnnotationTagBits(); // may not have been resolved until then >- if (type.isViewedAsDeprecated()) >- return true; >- } > } > break; > case Scope.CLASS_SCOPE :
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 214948
:
86597
|
121836
|
121875
|
121950
|
122006
|
122065
|
122138
|
122149
|
122306