You mix the two parts of the API: binding and binding restoration. From JavaDoc to setBindingsRecovery:
void org.eclipse.jdt.core.dom.ASTParser.setBindingsRecovery(boolean enabled)
Requests that the compiler should perform bindings recovery. When bindings recovery is enabled the compiler returns incomplete bindings.
Default to false.
This should be set to true only if bindings are resolved. It has no effect if there is no binding resolution.
Parameters:
enabled true if incomplete bindings are expected, and false if only complete bindings are expected.
, . , false, . , , , true AST. AST.hasBindingsResolved(), , .
: , / AST, - , . , , , , , .