Bug 435572

Summary: Annotation for declarations that need to work with all AST levels
Product: [Eclipse Project] JDT Reporter: Markus Keller <markus.kell.r>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: ASSIGNED --- QA Contact:
Severity: enhancement    
Priority: P3 CC: daniel_megert
Version: 4.4Keywords: helpwanted
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Markus Keller CLA 2014-05-22 18:45:54 EDT
Add an internal annotation for declarations that need to work with all AST levels, e.g. @AllAstLevels

Most of JDT UI only uses the latest AST level from org.eclipse.jdt.internal.ui.javaeditor.ASTProvider.SHARED_AST_LEVEL. But we have a few APIs that take an AST or ASTNode, and those need to support older levels as well.

See e.g. bug 435571 and the comment above StubUtility2#createConstructorStub(..).
Comment 1 Markus Keller CLA 2014-05-23 11:07:18 EDT
To find potentially affected entry points, select API packages and search for type "org.eclipse.jdt.core.dom.*" in match locations "Method return types" and "Method parameter types".