Skip to content

JDK19 jdk_other_0_FAILED error: cannot find symbol HotSpotDiagnosticMXBean.ThreadDumpFormat #15278

Description

@JasonFengJ9

Failure link

From an internal build view/Test_grinder/job/Grinder/24751/consoleFull(mac10x64rt02):

23:46:16  openjdk version "19-internal" 2022-09-20
23:46:16  OpenJDK Runtime Environment (build 19-internal-adhoc.jenkins.BuildJDKnextx86-64macPersonal)
23:46:16  Eclipse OpenJ9 VM (build jdk19excludes-5cba1cdc4d8, JRE 19 Mac OS X amd64-64-Bit Compressed References 20220608_74 (JIT enabled, AOT enabled)
23:46:16  OpenJ9   - 5cba1cdc4d8
23:46:16  OMR      - cf8ddbd1adc
23:46:16  JCL      - 4cb748300c8 based on jdk-19+25)

Rerun in Grinder - Change TARGET to run only the failed test targets.

Optional info

Failure output (captured from console output)

23:56:47  ===============================================
23:56:47  Running test jdk_other_0 ...
23:56:47  ===============================================
23:56:47  jdk_other_0 Start Time: Wed Jun  8 23:56:47 2022 Epoch Time (ms): 1654747007710
23:56:47  "/Users/jenkins/workspace/Grinder/openjdkbinary/j2sdk-image/bin/java" -Xshareclasses:destroyAll; "/Users/jenkins/workspace/Grinder/openjdkbinary/j2sdk-image/bin/java" -Xshareclasses:groupAccess,destroyAll; echo "cache cleanup done";
23:56:47  JVMSHRC005I No shared class caches available
23:56:47  JVMSHRC005I No shared class caches available
23:56:47  cache cleanup done
23:56:47  variation: Mode150
23:56:47  JVM_OPTIONS:  -XX:+UseCompressedOops 

00:00:08  TEST: jdk/incubator/concurrent/StructuredTaskScope/StructuredThreadDumpTest.java

00:00:08  /Users/jenkins/workspace/Grinder/aqa-tests/openjdk/openjdk-jdk/test/jdk/jdk/incubator/concurrent/StructuredTaskScope/StructuredThreadDumpTest.java:44: error: cannot find symbol
00:00:08  import com.sun.management.HotSpotDiagnosticMXBean.ThreadDumpFormat;
00:00:08                                                   ^
00:00:08    symbol:   class ThreadDumpFormat
00:00:08    location: interface HotSpotDiagnosticMXBean
00:00:08  /Users/jenkins/workspace/Grinder/aqa-tests/openjdk/openjdk-jdk/test/jdk/jdk/incubator/concurrent/StructuredTaskScope/StructuredThreadDumpTest.java:150: error: cannot find symbol
00:00:08                  .dumpThreads(file.toString(), ThreadDumpFormat.JSON);
00:00:08                                                ^
00:00:08    symbol:   variable ThreadDumpFormat
00:00:08    location: class StructuredThreadDumpTest
00:00:08  Note: /Users/jenkins/workspace/Grinder/aqa-tests/openjdk/openjdk-jdk/test/jdk/jdk/incubator/concurrent/StructuredTaskScope/StructuredThreadDumpTest.java uses preview features of Java SE 19.
00:00:08  Note: Recompile with -Xlint:preview for details.
00:00:08  2 errors
00:00:08  1 warning
00:00:08  
00:00:08  TEST RESULT: Failed. Compilation failed: Compilation failed
00:00:08  --------------------------------------------------
00:00:57  Test results: passed: 264; failed: 1
00:01:09  Report written to /Users/jenkins/workspace/Grinder/jvmtest/openjdk/report/html/report.html
00:01:09  Results written to /Users/jenkins/workspace/Grinder/aqa-tests/TKG/output_16547464946514/jdk_other_0/work
00:01:09  Error: Some tests failed or other problems occurred.
00:01:09  
00:01:09  jdk_other_0_FAILED

It appears hotspot specific test.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions