Skip to content

Conversation

@jonpryor
Copy link
Contributor

@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
Contributor Author

jonpryor commented Jan 9, 2025

/azp run

@azure-pipelines
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
Contributor Author

/azp run

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

Azure Pipelines successfully started running 1 pipeline(s).

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

Copilot AI left a comment

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>
@github-actions github-actions bot locked and limited conversation to collaborators Feb 11, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants