Skip to content

JDK25 removes JavaLangAccess.virtualThreadDelayedTaskSchedulers() - #21608

Merged
keithc-ca merged 1 commit into
eclipse-openj9:masterfrom
JasonFengJ9:jdk25access
Apr 11, 2025
Merged

JDK25 removes JavaLangAccess.virtualThreadDelayedTaskSchedulers()#21608
keithc-ca merged 1 commit into
eclipse-openj9:masterfrom
JasonFengJ9:jdk25access

Conversation

@JasonFengJ9

@JasonFengJ9 JasonFengJ9 commented Apr 10, 2025

Copy link
Copy Markdown
Member

JDK25 removes JavaLangAccess.virtualThreadDelayedTaskSchedulers()

This fixes https://openj9-jenkins.osuosl.org/job/Build_JDKnext_aarch64_linux_OpenJDK/773/consoleFull

00:06:32  /home/jenkins/workspace/Build_JDKnext_aarch64_linux_OpenJDK/build/linux-aarch64-server-release/support/j9jcl/java.base/share/classes/java/lang/Access.java:610: error: method does not override or implement a method from a supertype
00:06:32  	@Override
00:06:32  	^
00:06:32  /home/jenkins/workspace/Build_JDKnext_aarch64_linux_OpenJDK/build/linux-aarch64-server-release/support/j9jcl/java.base/share/classes/java/lang/Access.java:612: error: cannot find symbol
00:06:32  		return VirtualThread.delayedTaskSchedulers();
00:06:32  		                    ^
00:06:32    symbol:   method delayedTaskSchedulers()

Signed-off-by: Jason Feng fengj@ca.ibm.com

Signed-off-by: Jason Feng <fengj@ca.ibm.com>
@JasonFengJ9

Copy link
Copy Markdown
Member Author

Local build hits a UnsatisfiedLinkError

* For target buildtools_create_symbols_javac__the.COMPILE_CREATE_SYMBOLS_batch:
Exception in thread "(unnamed thread)" java/lang/UnsatisfiedLinkError: jdk/internal/util/SystemProps$Raw.platformProperties()[Ljava/lang/String;
	at jdk/internal/util/SystemProps$Raw.<init> (java.base@24/SystemProps.java:263)
	at jdk/internal/util/SystemProps.initProperties (java.base@24/SystemProps.java:67)
	at java/lang/System.ensureProperties (java.base@24/System.java:398)
	at java/lang/System.afterClinitInitialization (java.base@24/System.java:227)
	at java/lang/Thread.initialize (java.base@24/Thread.java:2709)
	at java/lang/Thread.<init> (java.base@24/Thread.java:2773)

This will be addressed separately.

@keithc-ca

Copy link
Copy Markdown
Contributor

I think this should wait until we have a complete collection of changes that allow building from the openj9-staging branch of the head stream (without resorting to using the new --disable-java-warnings-as-errors configure option) and the linkage error noted above is addressed.

@JasonFengJ9

Copy link
Copy Markdown
Member Author

I think this should wait until we have a complete collection of changes that allow building from the openj9-staging branch of the head stream (without resorting to using the new --disable-java-warnings-as-errors configure option) and the linkage error noted above is addressed.

A successful build also depends on #20402

@keithc-ca

Copy link
Copy Markdown
Contributor

#21623 updates the boot jdk for the head stream.

@keithc-ca

Copy link
Copy Markdown
Contributor

Build succeeded when combined with ibmruntimes/openj9-openjdk-jdk#987.

@keithc-ca
keithc-ca merged commit 87465dd into eclipse-openj9:master Apr 11, 2025
@JasonFengJ9
JasonFengJ9 deleted the jdk25access branch April 12, 2025 11:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants