Skip to content

org.eclipse.pde.ds.annotations.tests project shows compilation errors in I20251029-1800 #2079

@iloveeclipse

Description

@iloveeclipse

I've just noticed that today with I20251029-1800 build because I had org.eclipse.pde.ds.annotations.tests project closed before.
Seem to be side effect of b235a27 (plus recent changes?).

Image

The org.eclipse.pde.ds.annotations.tests/META-INF/MANIFEST.MF file doesn't specify anywhere that it needs JUnit 4 libraries, yet org.junit_4.13.2.v20240929-1000.jar is added to the classpath in the IDE (I assume PDE does that under the hood, which seem to be wrong, but anyway). I also have no clue how it compiles at all on command line if code says

import org.junit.After;
import org.junit.Before;

but no one imports org.junit bundle nor package.

In the code the JUnit 4 API is really used next to JUnit 5, probably that causes strange compilation issues.
Instead of org.junit.Before org.junit.jupiter.api.BeforeEach should be used and so on.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingregressionRegression defect

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions