Skip to content

Support JDK17 style code snippets; {@snippet is only since JDK18#702

Merged
ktoso merged 1 commit intoswiftlang:mainfrom
ktoso:wip-java-source-levels
Apr 14, 2026
Merged

Support JDK17 style code snippets; {@snippet is only since JDK18#702
ktoso merged 1 commit intoswiftlang:mainfrom
ktoso:wip-java-source-levels

Conversation

@ktoso
Copy link
Copy Markdown
Collaborator

@ktoso ktoso commented Apr 14, 2026

This caught me off guard but it seems only JDK18 has the {@snippet} style code snippets, and was introduced in https://openjdk.org/jeps/413

So in order to not fail JDK17 javadoc we now allow building with explicit JDK 17 source level target and skip this new style.

Eventually we'll support /// javadoc as well

This caught me off guard but it seems only JDK18 has the `{@snippet}`
style code snippets, and was introduced in https://openjdk.org/jeps/413

So in order to not fail JDK17 javadoc we now allow building with
explicit JDK 17 source level target and skip this new style.

Eventually we'll support `///` javadoc as well
@ktoso ktoso changed the title Support JDK16 style code snippets; {@snippet is only since JDK18 Support JDK17 style code snippets; {@snippet is only since JDK18 Apr 14, 2026
@ktoso ktoso merged commit a5d78af into swiftlang:main Apr 14, 2026
64 checks passed
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