eclipse-jdt / eclipse-jdt/eclipse.jdt.core

Erroneous Access Restriction error in JavaDoc

Open
#4,923 10 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
237
Forks
195
Avg merge
1d 12h
Merged PRs (30d)
47

Description

This issue showed up after updating to the 2026-06 nightly repository. In one of my classes, I have an outdated link to a method which used to use the Guava predicate. At some point I removed Guava from my project and migrated to the native Java Predicate, but without updating the link.

Nonetheless, with the 2026-06 this now produces a compilation error, even though this type is only referenced in the JavaDoc. So this reference should not exist at runtime and should therefore not be treated as an error.

Image

The class itself is included in `org.bndtools.templating`, which apparently is a transitive dependency that is now added automatically to the classpath (and likely related to https://github.com/eclipse-pde/eclipse.pde/issues/2244), even though I don't use the BND tools at all.

I'm not sure whether this is a JDT problem or a PDE problem, but I'm putting it here due to the compilation error itself, which I think is produced by JDT.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.