dragonwell-project / dragonwell8

Alibaba Dragonwell8 JDK
http://dragonwell-jdk.io
GNU General Public License v2.0
4.21k stars 497 forks source link

[nightly]elastic-heap/TestElasticHeapErrorCode.java编译报错package jdk.test.lib does not exist #620

Closed sendaoYan closed 9 months ago

sendaoYan commented 9 months ago

job:https://tone.aliyun-inc.com/ws/xesljfzh/test_result/276179

/var/tmp/tone/run/jtreg/jdk-repo/jdk/test/elastic-heap/TestElasticHeapErrorCode.java:27: error: package jdk.test.lib does not exist
import jdk.test.lib.*;
^
/var/tmp/tone/run/jtreg/jdk-repo/jdk/test/elastic-heap/TestElasticHeapErrorCode.java:28: error: package jdk.test.lib.dcmd does not exist
import jdk.test.lib.dcmd.*;
^
/var/tmp/tone/run/jtreg/jdk-repo/jdk/test/elastic-heap/TestElasticHeapErrorCode.java:29: error: package jdk.test.lib.process does not exist
import jdk.test.lib.process.OutputAnalyzer;
                           ^
/var/tmp/tone/run/jtreg/jdk-repo/jdk/test/elastic-heap/TestElasticHeapErrorCode.java:30: error: package jdk.test.lib.process does not exist
import jdk.test.lib.process.ProcessTools;
                           ^
/var/tmp/tone/run/jtreg/jdk-repo/jdk/test/elastic-heap/TestElasticHeapErrorCode.java:31: error: package jdk.test.lib does not exist
import static jdk.test.lib.Asserts.*;
                          ^
/var/tmp/tone/run/jtreg/jdk-repo/jdk/test/elastic-heap/TestElasticHeapErrorCode.java:43: error: cannot find symbol
        serverBuilder = ProcessTools.createJavaProcessBuilder("-XX:+UseG1GC",
                        ^
  symbol:   variable ProcessTools
  location: class TestElasticHeapErrorCode
/var/tmp/tone/run/jtreg/jdk-repo/jdk/test/elastic-heap/TestElasticHeapErrorCode.java:51: error: cannot find symbol
        OutputAnalyzer output = new OutputAnalyzer(server);
        ^
  symbol:   class OutputAnalyzer
  location: class TestElasticHeapErrorCode
/var/tmp/tone/run/jtreg/jdk-repo/jdk/test/elastic-heap/TestElasticHeapErrorCode.java:51: error: cannot find symbol
        OutputAnalyzer output = new OutputAnalyzer(server);
                                    ^
  symbol:   class OutputAnalyzer
  location: class TestElasticHeapErrorCode
/var/tmp/tone/run/jtreg/jdk-repo/jdk/test/elastic-heap/TestElasticHeapErrorCode.java:56: error: cannot find symbol
        serverBuilder = ProcessTools.createJavaProcessBuilder("-XX:+UseG1GC",
                        ^
  symbol:   variable ProcessTools
  location: class TestElasticHeapErrorCode
/var/tmp/tone/run/jtreg/jdk-repo/jdk/test/elastic-heap/TestElasticHeapErrorCode.java:66: error: cannot find symbol
        output = new OutputAnalyzer(server);
                     ^
  symbol:   class OutputAnalyzer
  location: class TestElasticHeapErrorCode
/var/tmp/tone/run/jtreg/jdk-repo/jdk/test/elastic-heap/TestElasticHeapErrorCode.java:98: error: cannot find symbol
            PidJcmdExecutor je = new PidJcmdExecutor();
            ^
  symbol:   class PidJcmdExecutor
  location: class Server
/var/tmp/tone/run/jtreg/jdk-repo/jdk/test/elastic-heap/TestElasticHeapErrorCode.java:98: error: cannot find symbol
            PidJcmdExecutor je = new PidJcmdExecutor();
                                     ^
  symbol:   class PidJcmdExecutor
  location: class Server
12 errors

TEST RESULT: Failed. Compilation failed: Compilation failed

4个用例类似情况: elastic-heap/TestElasticHeapErrorCode.java elastic-heap/TestElasticHeapMTSetError.java elastic-heap/TestElasticHeapMXBean.java elastic-heap/TestElasticHeapMXBeanException.java jdk/jfr/jvm/TestClearStaleConstants.java

dzchun commented 9 months ago

任务:https://tone.aliyun-inc.com/ws/xesljfzh/test_result/276654 新增一个用例:jdk-repo/jdk/test/jdk/jfr/event/compiler/TestHugeObjectAllocationSample.java同样问题

jia-wei-tang commented 9 months ago

fix all.

sendaoYan commented 9 months ago

https://code.alibaba-inc.com/os-quality/tone-matrix-compiler/codereview/15722479