Lines 1-5
Link Here
|
1 |
/******************************************************************************* |
1 |
/******************************************************************************* |
2 |
* Copyright (c) 2000, 2009 IBM Corporation and others. |
2 |
* Copyright (c) 2000, 2010 IBM Corporation and others. |
3 |
* All rights reserved. This program and the accompanying materials |
3 |
* All rights reserved. This program and the accompanying materials |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
5 |
* which accompanies this distribution, and is available at |
5 |
* which accompanies this distribution, and is available at |
Lines 183-190
Link Here
|
183 |
IBinaryMethod info = (IBinaryMethod) getElementInfo(); |
183 |
IBinaryMethod info = (IBinaryMethod) getElementInfo(); |
184 |
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=316937 |
184 |
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=316937 |
185 |
// Use Signature#getParameterCount() only if the argument names are not already available. |
185 |
// Use Signature#getParameterCount() only if the argument names are not already available. |
186 |
final int paramCount = info.getArgumentNames() == null ? info.getArgumentNames().length : |
186 |
int paramCount = Signature.getParameterCount(new String(info.getMethodDescriptor())); |
187 |
Signature.getParameterCount(new String(info.getMethodDescriptor())); |
187 |
if (this.isConstructor()) { |
|
|
188 |
final IType declaringType = this.getDeclaringType(); |
189 |
if (declaringType.isMember() |
190 |
&& !Flags.isStatic(declaringType.getFlags())) { |
191 |
paramCount--; // remove synthetic argument from constructor param count |
192 |
} |
193 |
} |
194 |
|
188 |
if (paramCount != 0) { |
195 |
if (paramCount != 0) { |
189 |
// don't try to look for javadoc for synthetic methods |
196 |
// don't try to look for javadoc for synthetic methods |
190 |
int modifiers = getFlags(); |
197 |
int modifiers = getFlags(); |