Skip to content

biz.aQute.bnd.annotation: compile with java 8 - #7033

Merged
chrisrueger merged 1 commit into
bndtools:masterfrom
chrisrueger:bnd-annotations-jdk8
Jan 3, 2026
Merged

chrisrueger merged 1 commit into
bndtools:masterfrom
chrisrueger:bnd-annotations-jdk8

Conversation

@chrisrueger

@chrisrueger chrisrueger commented Jan 1, 2026 •

Copy link
Copy Markdown
Contributor

Closes #7005

remove Java 9+ features: It was simply the attributes of the @Deprecated annotation. So we just put that into the comment and use plain @Deprecated which is Java8 compatible.

Then enforced compilation with java8

TODO: Not sure if we really want to do this or what the drawbacks are. Maybe with bnd 8.0.0 we should remove java 8 support fully.

remove Java 9+ features: It was simply the attributes of the `@Deprecated` annotation. So we just put that into the comment and use plain `@Deprecated` which is Java8 compatible.

The enforce compilation with java8

Signed-off-by: Christoph Rueger <chrisrueger@gmail.com>
@chrisrueger
chrisrueger marked this pull request as draft January 1, 2026 16:51
@peterkir

peterkir commented Jan 1, 2026

Copy link
Copy Markdown
Contributor

Supporting Java 8 is a good idea from my point for now.
So removing Java 9 features for now, is a an obvious reason.

@chrisrueger
chrisrueger marked this pull request as ready for review January 1, 2026 21:51
@chrisrueger
chrisrueger merged commit 7249192 into bndtools:master Jan 3, 2026
11 checks passed
@chrisrueger

chrisrueger commented Jan 3, 2026 •

Copy link
Copy Markdown
Contributor Author

@laeubi

laeubi commented Jan 15, 2026

Copy link
Copy Markdown
Contributor

For annotation I think its fine keep them at java8 I see no benefit in any higher java version.

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.

biz.aQute.bnd.annotation bytecode level causes downstream build issues

3 participants