This section describes changes that are required if you are trying to change your 3.6 plug-in to adopt the 3.7 mechanisms and APIs.
A new AST level org.eclipse.jdt.core.dom.AST#JLS4
has been added for Java 7 language changes.
Clients of previous AST levels are recommended to adopt the new AST level and add support for the new constructs
(UnionType
, TryStatement#resources() / #RESOURCES_PROPERTY
).
org.eclipse.jdt.core.compiler.ReconcileContext#getAST4()
should be used were possible.
org.eclipse.jdt.ui.SharedASTProvider#getAST(..)
now returns a JLS4 AST.
Note that these changes only affect Eclipse 3.7.1 and 3.8. They are not present in 3.7.