Bug 435572 - Annotation for declarations that need to work with all AST levels
Summary: Annotation for declarations that need to work with all AST levels
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.4   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2014-05-22 18:45 EDT by Markus Keller CLA
Modified: 2018-04-13 06:55 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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".