Thanks David, I tried it out and it works correctly now.
> semantic-get-local-variables seems to be broken for me when using
> the Java 1.5 wisent parser in cedet 1.0pre3
Oops you're right. In fact I introduced that bug in my last change to
the grammar to handle the definitions of anonymous classes.
I committed a fix to wisent-java.wy in CVS.
Copy the new version in your local cedet/semantic/wisent directory,
then, in that directory, run 'make wy' to recompile the grammar.
Thanks for your report.