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 125166 Details for
Bug 263558
Can't compile package-info.java from FindBugs with 3.5 Eclipse
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Proposed patch
patch.txt (text/plain), 4.24 KB, created by
Kent Johnson
on 2009-02-09 15:45:24 EST
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Kent Johnson
Created:
2009-02-09 15:45:24 EST
Size:
4.24 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core >Index: compiler/org/eclipse/jdt/internal/compiler/lookup/PackageBinding.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/PackageBinding.java,v >retrieving revision 1.49 >diff -u -r1.49 PackageBinding.java >--- compiler/org/eclipse/jdt/internal/compiler/lookup/PackageBinding.java 12 Jan 2009 18:37:16 -0000 1.49 >+++ compiler/org/eclipse/jdt/internal/compiler/lookup/PackageBinding.java 9 Feb 2009 20:43:33 -0000 >@@ -82,6 +82,39 @@ > addPackage(subPackageBinding); > return subPackageBinding; > } >+/** >+ * Compute the tagbits for standard annotations. For source types, these could require >+ * lazily resolving corresponding annotation nodes, in case of forward references. >+ * @see org.eclipse.jdt.internal.compiler.lookup.Binding#getAnnotationTagBits() >+ * NOTE : when the name environment is based on the JavaModel, the synthetic >+ * package-info type is not stored so the package's annotations will not be available. >+ */ >+public long getAnnotationTagBits() { >+ if ((this.tagBits & TagBits.DeprecatedAnnotationResolved) != 0) >+ return this.tagBits; >+ >+ this.tagBits |= (TagBits.AnnotationResolved | TagBits.DeprecatedAnnotationResolved); >+ if (this.compoundName == CharOperation.NO_CHAR_CHAR) >+ return this.tagBits; >+ >+ ReferenceBinding packageInfo = this.getType(TypeConstants.PACKAGE_INFO_NAME); >+ if (packageInfo != null) >+ this.tagBits |= (packageInfo.getAnnotationTagBits() & TagBits.AllStandardAnnotationsMask); >+ return this.tagBits; >+} >+public long getDeprecatedAnnotationTagBits() { >+ if ((this.tagBits & TagBits.DeprecatedAnnotationResolved) != 0) >+ return this.tagBits; >+ >+ this.tagBits |= TagBits.DeprecatedAnnotationResolved; >+ if (this.compoundName == CharOperation.NO_CHAR_CHAR) >+ return this.tagBits; >+ >+ ReferenceBinding packageInfo = this.getType(TypeConstants.PACKAGE_INFO_NAME); >+ if (packageInfo != null) >+ packageInfo.initializeDeprecatedAnnotationTagBits(); >+ return this.tagBits; >+} > /* Answer the subpackage named name; ask the oracle for the package if its not in the cache. > * Answer null if it could not be resolved. > * >@@ -204,28 +237,6 @@ > > return null; > } >- >-/** >- * Compute the tagbits for standard annotations. For source types, these could require >- * lazily resolving corresponding annotation nodes, in case of forward references. >- * @see org.eclipse.jdt.internal.compiler.lookup.Binding#getAnnotationTagBits() >- * NOTE : when the name environment is based on the JavaModel, the synthetic >- * package-info type is not stored so the package's annotations will not be available. >- */ >-public long getAnnotationTagBits() { >- if ((this.tagBits & TagBits.AnnotationResolved) != 0) >- return this.tagBits; >- >- this.tagBits |= (TagBits.AnnotationResolved | TagBits.DeprecatedAnnotationResolved); >- if (this.compoundName == CharOperation.NO_CHAR_CHAR) >- return this.tagBits; >- >- ReferenceBinding packageInfo = this.getType(TypeConstants.PACKAGE_INFO_NAME); >- if (packageInfo != null) >- this.tagBits |= (packageInfo.getAnnotationTagBits() & TagBits.AllStandardAnnotationsMask); >- return this.tagBits; >-} >- > /* API > * Answer the receiver's binding type from Binding.BindingID. > */ >Index: compiler/org/eclipse/jdt/internal/compiler/lookup/ReferenceBinding.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/ReferenceBinding.java,v >retrieving revision 1.129 >diff -u -r1.129 ReferenceBinding.java >--- compiler/org/eclipse/jdt/internal/compiler/lookup/ReferenceBinding.java 12 Jan 2009 18:37:16 -0000 1.129 >+++ compiler/org/eclipse/jdt/internal/compiler/lookup/ReferenceBinding.java 9 Feb 2009 20:43:33 -0000 >@@ -1175,7 +1175,7 @@ > */ > public final boolean isViewedAsDeprecated() { > return (this.modifiers & (ClassFileConstants.AccDeprecated | ExtraCompilerModifiers.AccDeprecatedImplicitly)) != 0 >- || (getPackage().getAnnotationTagBits() & TagBits.AnnotationDeprecated) != 0; >+ || (getPackage().getDeprecatedAnnotationTagBits() & TagBits.AnnotationDeprecated) != 0; > } > > public ReferenceBinding[] memberTypes() {
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 263558
:
124616
|
125166
|
125407