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 142724 Details for
Bug 261909
ClassFileReader.getModifiers() answers funny bits
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Proposed fix
patch_261909.txt (text/plain), 2.25 KB, created by
Olivier Thomann
on 2009-07-27 21:57:30 EDT
(
hide
)
Description:
Proposed fix
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2009-07-27 21:57:30 EDT
Size:
2.25 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core >Index: compiler/org/eclipse/jdt/internal/compiler/classfmt/ClassFileReader.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/classfmt/ClassFileReader.java,v >retrieving revision 1.89 >diff -u -r1.89 ClassFileReader.java >--- compiler/org/eclipse/jdt/internal/compiler/classfmt/ClassFileReader.java 9 Mar 2009 19:57:46 -0000 1.89 >+++ compiler/org/eclipse/jdt/internal/compiler/classfmt/ClassFileReader.java 28 Jul 2009 01:59:27 -0000 >@@ -658,10 +658,15 @@ > * @return int > */ > public int getModifiers() { >+ int modifiers; > if (this.innerInfo != null) { >- return this.innerInfo.getModifiers() | (this.accessFlags & ClassFileConstants.AccDeprecated); >+ modifiers = this.innerInfo.getModifiers() >+ | (this.accessFlags & ClassFileConstants.AccDeprecated) >+ | (this.accessFlags & ClassFileConstants.AccSynthetic); >+ } else { >+ modifiers = this.accessFlags; > } >- return this.accessFlags; >+ return modifiers; > } > > /** >Index: model/org/eclipse/jdt/internal/core/BinaryType.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/BinaryType.java,v >retrieving revision 1.164 >diff -u -r1.164 BinaryType.java >--- model/org/eclipse/jdt/internal/core/BinaryType.java 7 Mar 2009 00:58:55 -0000 1.164 >+++ model/org/eclipse/jdt/internal/core/BinaryType.java 28 Jul 2009 01:59:27 -0000 >@@ -23,6 +23,7 @@ > import org.eclipse.jdt.core.search.SearchEngine; > import org.eclipse.jdt.internal.codeassist.CompletionEngine; > import org.eclipse.jdt.internal.compiler.ast.TypeDeclaration; >+import org.eclipse.jdt.internal.compiler.classfmt.ClassFileConstants; > import org.eclipse.jdt.internal.compiler.env.IBinaryAnnotation; > import org.eclipse.jdt.internal.compiler.env.IBinaryType; > import org.eclipse.jdt.internal.compiler.lookup.Binding; >@@ -315,7 +316,7 @@ > */ > public int getFlags() throws JavaModelException { > IBinaryType info = (IBinaryType) getElementInfo(); >- return info.getModifiers(); >+ return info.getModifiers() & ~ClassFileConstants.AccSuper; > } > /* > * @see IType#getFullyQualifiedName()
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 261909
: 142724