[...]
Finally, it does not work in the compiled PPJavaGrammar class. Is there a way to reset all the variables, so that they will be recompiled again?
This was a silly question. I just noticed that the problem was a singleton that was keeping alive the instance of PPJavaGrammar. Sorry :)