Hi,
I think the grammar for Java has not been updated to the latest Java
spec. If "static" is some new feature, then that is why it is not yet
supported. I think someone on the jdee mailing list wanted to tackle
this problem.
Eric
>>> David <david.boon@...> seems to think that:
>Hello, I've been having some trouble with the "import static" construct in
>java.
>
>With this example:
>
>import java.util.*;
>
>import org.apache.commons.lang.builder.*;
>import org.apache.log4j.*;
>import org.apache.log4j.xml.DOMConfigurator;
>import org.testng.annotations.*;
>import static org.testng.Assert.*;
>
>public class SemanticTest {
>
>}
>
>
>When I execute 'semantic-fetch-tags' the 'org.testng.Assert.*' is not in
>the results:
[...]
>This presents some problems when working with the imports, for example
>folding, semantic-tag-folding-fold-block, doesn't see the 'import static'
>and organizing using jde-organize-imports also drops the import static
>because it's not returned from 'semantic-fetc-tags'. I took a look at '
>wisent-java-tags.wy', I do see grammar tokens for "import" but nothing that
>looks like it would recognize "import static".
>
>
>I'm using cedet from cvs and I've cedet1.0pre4.
>
>Thanks in advance.
>
>-David
--
Eric Ludlam: eric@...
Siege: http://www.siege-engine.com Emacs: http://cedet.sourceforge.net
|