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 175894 Details for
Bug 316937
JavaElement.getElementInfo(..) throws JavaModelException when trying to get info for an inner class in an external jar
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Proposed fix
patch_316937.txt (text/plain), 1.79 KB, created by
Olivier Thomann
on 2010-08-04 17:39:22 EDT
(
hide
)
Description:
Proposed fix
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2010-08-04 17:39:22 EDT
Size:
1.79 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.106 >diff -u -r1.106 BinaryMethod.java >--- model/org/eclipse/jdt/internal/core/BinaryMethod.java 28 Jun 2010 13:07:11 -0000 1.106 >+++ model/org/eclipse/jdt/internal/core/BinaryMethod.java 4 Aug 2010 21:38:35 -0000 >@@ -1,5 +1,5 @@ > /******************************************************************************* >- * Copyright (c) 2000, 2009 IBM Corporation and others. >+ * Copyright (c) 2000, 2010 IBM Corporation and others. > * All rights reserved. This program and the accompanying materials > * are made available under the terms of the Eclipse Public License v1.0 > * which accompanies this distribution, and is available at >@@ -183,8 +183,15 @@ > IBinaryMethod info = (IBinaryMethod) getElementInfo(); > // https://bugs.eclipse.org/bugs/show_bug.cgi?id=316937 > // Use Signature#getParameterCount() only if the argument names are not already available. >- final int paramCount = info.getArgumentNames() == null ? info.getArgumentNames().length : >- Signature.getParameterCount(new String(info.getMethodDescriptor())); >+ int paramCount = Signature.getParameterCount(new String(info.getMethodDescriptor())); >+ if (this.isConstructor()) { >+ final IType declaringType = this.getDeclaringType(); >+ if (declaringType.isMember() >+ && !Flags.isStatic(declaringType.getFlags())) { >+ paramCount--; // remove synthetic argument from constructor param count >+ } >+ } >+ > if (paramCount != 0) { > // don't try to look for javadoc for synthetic methods > int modifiers = getFlags();
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 316937
:
171960
|
172479
|
172729
|
172890
| 175894 |
177811