Skip to content

Conversation

@datho7561
Copy link
Contributor

What it does

Some completion tests use test files that have mismatching package declarations and folder locations.

These tests aren't testing for how mismatching the package declaration and folder location affects the completion results, so I think it would be helpful to make the declared package and folder match.

How to test

I've updated the existing test cases.

Author checklist

datho7561 added a commit to datho7561/eclipse.jdt.core that referenced this pull request Aug 28, 2025
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 <[email protected]>
Some completion tests use test files that have mismatching package
declarations and folder locations.

These tests aren't testing for how mismatching the package declaration
and folder location affects the completion results,
so I think itwould be helpful to make the declared package and folder match.

Signed-off-by: David Thompson <[email protected]>
@datho7561 datho7561 force-pushed the test-package-and-folder-mismatch branch from dcb2e53 to 0062f30 Compare August 28, 2025 19:45
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