Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[build] Prefer JDK-17 #1291

Merged
merged 3 commits into from
Jan 11, 2025
Merged

[build] Prefer JDK-17 #1291

merged 3 commits into from
Jan 11, 2025

Conversation

jonpryor
Copy link
Member

@jonpryor jonpryor commented Jan 9, 2025

Context: dotnet/android@df68c20

dotnet/android requires JDK-17, as of dotnet/android@df68c208.

Update the dotnet/java-interop build to prefer JDK-17, for consistency.

Additionally, replace use of javac -source X -target X with javac --release X, as this removes a build warning:

EXEC : warning : [options] system modules path not set in conjunction with -source 11

Context: dotnet/android@df68c20

dotnet/android requires JDK-17, as of dotnet/android@df68c208.

Update the dotnet/java-interop build to prefer JDK-17, for consistency.

Additionally, *replace* use of `javac -source X -target X` with
`javac --release X`, as this removes a build warning:

	EXEC : warning : [options] system modules path not set in conjunction with -source 11
@jonpryor
Copy link
Member Author

jonpryor commented Jan 9, 2025

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

New JDK, new `.class` output.
Context: 7a32bb9
Context: https://bugs.openjdk.org/browse/JDK-8223291

JDK-8223291 was fixed in JDK-14, which is presumably why XML output
changed.  Again.

Update expected XML reference files so that tests pass with JDK-17.
(Which means these tests will *only* pass with JDK-17, and later
if we're lucky, but will *fail* with JDK-11.)
@jonpryor
Copy link
Member Author

/azp run

@jonpryor jonpryor requested a review from Copilot January 11, 2025 01:33
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jonpryor jonpryor requested a review from jpobst January 11, 2025 01:33

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 5 out of 11 changed files in this pull request and generated no comments.

Files not reviewed (6)
  • Directory.Build.props: Language not supported
  • build-tools/scripts/Prepare.targets: Language not supported
  • tools/java-source-utils/src/test/resources/UnresolvedTypes.xml: Language not supported
  • tools/java-source-utils/src/test/resources/com/microsoft/android/DemoInfo.xml: Language not supported
  • tools/java-source-utils/src/test/resources/com/microsoft/android/JavaType.xml: Language not supported
  • tools/java-source-utils/src/test/resources/com/microsoft/android/Outer.xml: Language not supported
@jonpryor jonpryor merged commit 4f06201 into main Jan 11, 2025
4 checks passed
@jonpryor jonpryor deleted the dev/jonp/jonp-prefer-jdk-17 branch January 11, 2025 14:56
jonpryor pushed a commit to dotnet/android that referenced this pull request Jan 13, 2025
Changes: dotnet/java-interop@ee47652...4f06201

  * dotnet/java-interop@4f06201b: [build] Prefer JDK-17 (dotnet/java-interop#1291)
  * dotnet/java-interop@b966c15b: [java-source-utils] Flush VSCode changes (dotnet/java-interop#1289)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
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.

2 participants