Re: Re: Features brainstorming

Petr Kuzel <[email protected]> Mon, 02 Feb 2004 23:13:55 +0100
Newsgroups gmane.comp.java.netbeans.modules.tasklist.devel
Message-ID <[email protected]>
Tor Norbye wrote:

> One important distinction between the javaparser module and the pmd
> stuff is that pmd (and most refactoring tools) only operate on valid &
> compileable source.

PMD <http://pmd.sourceforge.net/howitworks.html> in reality
survives most errors but structural ones (non-pairing {},(),[]).
It probably works only at one source file level without any
broader context (classpath or semantics). Otherwise it would
be useless in Jesse's live PMD suggestions scenario :-).
 
> The javaparser module on the other hand is doing string-tricks and
> looking at the (compileable) environment, which means it can offer
> suggestions even for invalid code. This makes it a bit different from
> solutions based on ASTs, like PMD.  The ideal would be to have the AST
> for the code where compilation fails; hopefully with JSR XXX (201?
> something like that, can't remember off hand) that will be feasible.

JSR#199 state <http://jcp.org/en/jsr/detail?id=199> is not very
promising right now.

  Cc.