Javadoc on TryStatement.resources() says "A resource is either a VariableDeclarationExpression or (since JLS9) a Name".
ASTConverter9Test.testBug497719_0002 tries to cast an item of the resources() list into a SuperFieldAccess and passes.
This is inconsistent; maybe the javadoc should be change to clarify "In a well-formed Java code, a resource is either a VariableDeclarationExpression or (since JLS9) a Name."
Javadoc on TryStatement.resources() says "A resource is either a VariableDeclarationExpression or (since JLS9) a Name". ASTConverter9Test.testBug497719_0002 tries to cast an item of the
resources()
list into a SuperFieldAccess and passes.This is inconsistent; maybe the javadoc should be change to clarify "In a well-formed Java code, a resource is either a VariableDeclarationExpression or (since JLS9) a Name."