I could not find any helping document regarding this error hence I am posting this question. I am trying to use locally built Eclipse JDT core jar in my project. I followed the flowing steps. Created an eclipse workspace as described in Link Built eclipse.jdt.core using the mvn -P build-individual-bundles package Added the resulting jar file that is created in
Tag: eclipse-jdt
get line number of a MethodDeclaration
I’m trying to create a parser of Java files, but I can’t get the correct line number of each method. this is the code that I’ve right now: imagine that we’re parsing the following class the code instead of returning 6, returns 3. apparently the eclipse.jdt API considers that javacode also belongs to the method. so, my question is, how
How to specifically suppress “Comparing identical expressions” in Eclipse-Helios JDT
I tried annotating the enclosing method with but this does not work (worse yet, the annotation results in its own Unsupported @SuppressWarnings(“compareIdentical”) warning!) I know that I can always use but that’d be more warning-suppression than I want. FWIW, I got the “compareIdentical” string from the “Warning Options” table in http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.jdt.doc.isv/guide/jdt_api_compile.htm (a hail-mary pass, to be sure). Thanks! Answer Officially,