Bug 539720 - [test] maintainable strategy for AST levels in tests
Summary: [test] maintainable strategy for AST levels in tests
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 4.9   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact: Sarika Sinha CLA
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2018-10-02 05:54 EDT by Stephan Herrmann CLA
Modified: 2023-02-08 13:40 EST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stephan Herrmann CLA 2018-10-02 05:54:30 EDT
JDT tests are prone to raising compile warnings, whenever we move to the next AST level. For latest see https://www.eclipse.org/lists/jdt-dev/msg01056.html

I believe DOM/Model tests basically have a strategy to minimize maintenance, but since this strategy is not clearly documented, each version bump may introduce workarounds here and there, thus blurring the picture.

In this bug I'd like to capture a smoothly maintainable strategy for future versions.

Questions:
- Which tests should update to latest AST level, once available?
- Which tests should be frozen to the AST level of their original purpose?

- What is the purpose and scope of
  - AbstractJavaModelTest.AST_INTERNAL_JLSx ?
  - ConverterTestSetup.JLSx_INTERNAL ?
  - ConverterTestSetup.getJLSx() ?
  - AbstractASTTests.testLevel ?

As a result I'd like to see two simple HOWTOs:
- What adjustments are needed in existing tests to embrace a new AST level?
- What is the pattern for creating tests for a new AST level specifically?
Comment 1 Manoj N Palat CLA 2019-11-25 10:49:20 EST
Bulk move out of 4.14
Comment 2 Manoj N Palat CLA 2020-05-14 07:52:03 EDT
Bulk move out of 4.16
Comment 3 Manoj N Palat CLA 2021-01-07 00:10:28 EST
Bulk move out of 4.19 M1
Comment 4 Sarika Sinha CLA 2021-02-10 02:26:05 EST
Removing the target milestone as we don't have any owner of this bug.
Comment 5 Eclipse Genie CLA 2023-02-08 13:40:48 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.