JQueryAPI#getJavaModelElement(Object) does not return the method if it
contains array parameters (e.g. main(String[]). The actual bug is in
JQueryTyRuBaAPI#getMethodName(IMethod), in which brackets are used as
string delimiters:
private static String getMethodName(IMethod m) throws JavaModelException {
// so this is kind of "hack-ish" but it seems to work...
String result = m.toString();
result = result.substring(0, result.indexOf("["));
// remove white spaces
result = result.replaceAll("\\p{Space}", "");
return result;
}
Nobody/Anonymous
Database
v4.0
Public
|
Date: 2009-03-22 18:22 Suggestion for fix: |
Copyright © 2009 Geeknet, Inc. All rights reserved. Terms of Use