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

TestConstructorFinder.java run fail by dragonwell8/dragonwell11 #3752

Closed
sendaoYan opened this issue Jun 10, 2022 · 1 comment · Fixed by #3759
Closed

TestConstructorFinder.java run fail by dragonwell8/dragonwell11 #3752

sendaoYan opened this issue Jun 10, 2022 · 1 comment · Fixed by #3759

Comments

@sendaoYan
Copy link
Contributor

Describe the bug
jdk/test/java/beans/XMLDecoder/8028054/TestConstructorFinder.java run fail by dragonwell8

To Reproduce
jtreg jdk/test/java/beans/XMLDecoder/8028054/TestConstructorFinder.java

java.lang.UnsatisfiedLinkError: java.dyn.CoroutineSupport.registerNatives()V
        at java.dyn.CoroutineSupport.registerNatives(Native Method)
        at java.dyn.CoroutineSupport.<clinit>(CoroutineSupport.java:60)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:264)
        at Task.getClasses(Task.java:90)
        at TestConstructorFinder.main(TestConstructorFinder.java:42)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
        at java.lang.Thread.run(Thread.java:855)

Expected behavior
The reason of this testcase run fail, is dragonwell can't load native library registerNatives. But only enable Coroutine dragonwell can load registerNatives.

If we modify this case like this:

diff --git a/jdk/test/java/beans/XMLDecoder/8028054/TestConstructorFinder.java b/jdk/test/java/beans/XMLDecoder/8028054/TestConstructorFinder.java
index 1bce91ec..3adb2e33 100644
--- a/jdk/test/java/beans/XMLDecoder/8028054/TestConstructorFinder.java
+++ b/jdk/test/java/beans/XMLDecoder/8028054/TestConstructorFinder.java
@@ -34,7 +34,7 @@ import java.util.List;
  * @summary Tests that cached constructors have synchronized access
  * @author Sergey Malenkov
  * @compile -XDignore.symbol.file TestConstructorFinder.java
- * @run main TestConstructorFinder
+ * @run main/othervm -XX:+UnlockExperimentalVMOptions -XX:+EnableCoroutine TestConstructorFinder
  */

Then this testcase will run pass:

image

So, can we add this testcase to alibaba problemlist?

@smlambert
Copy link
Contributor

So, can we add this testcase to alibaba problemlist?

Yes, please do 👍

@sendaoYan sendaoYan changed the title TestConstructorFinder.java run fail by dragonwell8 TestConstructorFinder.java run fail by dragonwell8/dragonwell11 Jun 13, 2022
smlambert pushed a commit that referenced this issue Jun 13, 2022
* Exclude jdk_beans testcase TestConstructorFinder.java

Exclude jdk_beans testcase java/beans/XMLDecoder/8028054/TestConstructorFinder.java only vendor is alibaba

Fixes: #3752
Signed-off-by: sendaoYan <[email protected]>

* Exclude jdk_beans testcase TestConstructorFinder.java

Exclude jdk_beans testcase java/beans/XMLDecoder/8028054/TestConstructorFinder.java only vendor is alibaba

Fixes: #3752
Signed-off-by: sendaoYan <[email protected]>
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 a pull request may close this issue.

2 participants