I am trying to add a call to a field StaticClassName.classto an existing class using JDTDom methods .
I get IllegalArgumentExceptionwhen I try to create a simple name with ast.newSimpleName("class").
I think this is because it JDTtreats it as a keyword when it is also used as a field name.
Is there a way to force a JDT“class” to be accepted as the name of an identifier or another way to access the class object? (it should work in both static and non-stationary methods)
source
share