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 58935 Details for
Bug 149154
BinaryMethod#getParameterNames() should not try to extract from attached javadoc for synthetics
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Proposed fix
patch_149154.txt (text/plain), 1.57 KB, created by
Olivier Thomann
on 2007-02-13 21:45:46 EST
(
hide
)
Description:
Proposed fix
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2007-02-13 21:45:46 EST
Size:
1.57 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core >Index: model/org/eclipse/jdt/internal/core/BinaryMethod.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/BinaryMethod.java,v >retrieving revision 1.91 >diff -u -r1.91 BinaryMethod.java >--- model/org/eclipse/jdt/internal/core/BinaryMethod.java 2 Jun 2006 14:15:03 -0000 1.91 >+++ model/org/eclipse/jdt/internal/core/BinaryMethod.java 14 Feb 2007 02:42:29 -0000 >@@ -14,6 +14,7 @@ > import org.eclipse.core.runtime.IProgressMonitor; > import org.eclipse.jdt.core.*; > import org.eclipse.jdt.core.compiler.CharOperation; >+import org.eclipse.jdt.internal.compiler.classfmt.ClassFileConstants; > import org.eclipse.jdt.internal.compiler.env.IBinaryMethod; > import org.eclipse.jdt.internal.compiler.env.IBinaryType; > import org.eclipse.jdt.internal.compiler.lookup.Binding; >@@ -167,6 +168,11 @@ > IBinaryMethod info = (IBinaryMethod) getElementInfo(); > final int paramCount = Signature.getParameterCount(new String(info.getMethodDescriptor())); > if (paramCount != 0) { >+ // don't try to look for javadoc for synthetic methods >+ int modifiers = this.getFlags(); >+ if ((modifiers & ClassFileConstants.AccSynthetic) != 0) { >+ return this.parameterNames = getRawParameterNames(paramCount); >+ } > String javadocContents = null; > IType declaringType = this.getDeclaringType(); > PerProjectInfo projectInfo = JavaModelManager.getJavaModelManager().getPerProjectInfoCheckExistence(this.getJavaProject().getProject());
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 149154
: 58935