<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 8: getJavaModelElement does not work for all methods</title><link>https://sourceforge.net/p/jquery/bugs/8/</link><description>Recent changes to 8: getJavaModelElement does not work for all methods</description><atom:link href="https://sourceforge.net/p/jquery/bugs/8/feed.rss" rel="self"/><language>en</language><lastBuildDate>Sun, 22 Mar 2009 18:11:46 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/jquery/bugs/8/feed.rss" rel="self" type="application/rss+xml"/><item><title>getJavaModelElement does not work for all methods</title><link>https://sourceforge.net/p/jquery/bugs/8/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;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:&lt;/p&gt;
&lt;p&gt;private static String getMethodName(IMethod m) throws JavaModelException {&lt;br /&gt;
// so this is kind of "hack-ish" but it seems to work...&lt;br /&gt;
String result = m.toString();&lt;br /&gt;
result = result.substring(0, result.indexOf("["));&lt;br /&gt;
// remove white spaces&lt;br /&gt;
result = result.replaceAll("\\p{Space}", "");&lt;br /&gt;
return result;&lt;br /&gt;
}&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">A.B.</dc:creator><pubDate>Sun, 22 Mar 2009 18:11:46 -0000</pubDate><guid>https://sourceforge.nete5adc75827ee5287b3d68b2734549ebc4d23d1a4</guid></item></channel></rss>