Skip to content

Fix package name and folder mismatch for some test cases#4361

Open
datho7561 wants to merge 1 commit intoeclipse-jdt:masterfrom
datho7561:fix-more-test-package-names
Open

Fix package name and folder mismatch for some test cases#4361
datho7561 wants to merge 1 commit intoeclipse-jdt:masterfrom
datho7561:fix-more-test-package-names

Conversation

@datho7561
Copy link
Contributor

@datho7561 datho7561 commented Aug 28, 2025

What it does

See #4250

Some test classes have different folder and package names. javac uses the package name stated in the class if there's a mismatch, and ECJ uses the folder name. However, the tests using these classes aren't testing for that behaviour; the package mismatch seems to have been an oversight of the person coding the tests.

As a result, I think it's best to make the package and folder line up properly.

How to test

This involves changes to the existing test case; those tests should still pass

Author checklist

See eclipse-jdt#4250

Some test classes have different folder and package names.
`javac` uses the package name stated in the class if there's a mismatch,
and ECJ uses the folder name.
However, these tests aren't testing for that behaviour;
the package mismatch seems to have been an oversight of the person coding the tests.
As a result, I think it's best to make the package and folder line up
properly.

Signed-off-by: David Thompson <davthomp@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant