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 pac…
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 a…
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 “compareIdentic…