Menu

#1174 "Generate Abstract Syntax Tree" always run in JDK 1.4 mode

Eclipse-Plugin
closed
None
Eclipse
3-Major
Bug
4.0.2
2014-04-26
2014-03-27
Fred Bricon
No

Originally reported as https://issues.jboss.org/browse/JBIDE-14971

After installing PMD eclipse plugin (4.0.0, 4.0.1 or 4.0.2), in a project using Java 5+, select a Java class using static imports or generics and executed Generate Abstract Syntax Tree

You'll get either one of these errors :

  • net.sourceforge.pmd.lang.java.ast.ParseException: Can't use static imports when running in JDK 1.4 mode!
  • net.sourceforge.pmd.lang.java.ast.ParseException: Can't use generics unless running in JDK 1.5 mode!

https://issues.jboss.org/secure/attachment/12363385/Screenshot.png

Discussion

  • Andreas Dangel

    Andreas Dangel - 2014-04-13
    • status: open --> in-progress
    • assigned_to: Andreas Dangel
     
  • Andreas Dangel

    Andreas Dangel - 2014-04-25
    • status: in-progress --> closed
     
  • Andreas Dangel

    Andreas Dangel - 2014-04-25

    Will be fixed with the next release.

     
  • Fred Bricon

    Fred Bricon - 2014-04-25

    Thanks Andreas. 2 questions :

    • Is there a nightly build update site we can use to test the fix?
    • Do you have any ETA on the next release? We (JBoss Tools Team) promote PMD in our JBoss Central page. It'd be nice if our next release (sometime in July+) could have the fixed version.
     

Log in to post a comment.