eclipse-ee4j / eclipse-ee4j/jersey

Disambiguate release notes regarding org.glassfish.jersey.internal.inject.PerLookup

Open
#3,597 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
730
Forks
382
PR merge metrics
No merged PRs in 30d

Description

The [release notes §28.1 for jersey 2.26 ](https://jersey.github.io/documentation/latest/user-guide.html#mig-2.26) indicate the following

> HK2-specific annotations @PerLookup and @PerThread are migrated to Jersey with an adjusted package.

What is not obvious in this documentation is that the annotation are apparently moved to artefact `org.glassfish.jersey.core:jersey-common`, package `org.glassfish.jersey.internal.inject`.

The fact that those annotations reside in an `internal` package make depending on them from jersey based application code a bit awkward. `internal` tend to mean *do not use* but those annotation are very common and I imagine they are expected to be used from outside jersey code.

Am I right? Is it safe to depend on those anotations, or should I keep relying on the hk2 variants? What about code in the internal package, is it unproblematic to depend on it?

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.