jdk10 on macOS

Alan Snyder javalists at cbfiddle.com
Wed Jan 17 18:16:35 UTC 2018


Regarding your last point, it seems that the test image has been built, so perhaps the problem lies elsewhere.

Alans-iMac:jdk10 alan$ ll build/*/images
total 3344
drwxr-xr-x  81 alan  staff     2754 Jan  5 10:41 gengraphs
drwxr-xr-x  11 alan  staff      374 Jan  5 10:42 jdk
drwxr-xr-x   3 alan  staff      102 Jan  5 10:42 jdk-bundle
drwxr-xr-x  77 alan  staff     2618 Jan  5 10:41 jmods
drwxr-xr-x   8 alan  staff      272 Jan  5 10:41 jre
drwxr-xr-x   3 alan  staff      102 Jan  5 10:42 jre-bundle
-rw-r--r--   1 alan  staff  1709015 Jan  5 10:38 sec-bin.zip
drwxr-xr-x   6 alan  staff      204 Jan  5 11:01 test
Alans-iMac:jdk10 alan$ ll build/*/images/test
total 8
-rw-r--r--  1 alan  staff   15 Jan  8 15:58 Readme.txt
drwxr-xr-x  3 alan  staff  102 Jan  5 11:00 failure_handler
drwxr-xr-x  4 alan  staff  136 Jan  5 11:01 hotspot
drwxr-xr-x  4 alan  staff  136 Jan  5 11:01 jdk



> On Jan 17, 2018, at 4:16 AM, Magnus Ihse Bursie <magnus.ihse.bursie at oracle.com> wrote:
> 
> 
> On 2018-01-16 17:28, Alan Snyder wrote:
>> Is there some resolution to this?
>> 
>> Is the JDK that I built valid despite the test failures?
>> 
>> Are there problems with some tests or with the test scripts? If so, will the problems be fixed?
> 
> I believe the problem is most likely to reside in your environment, or details on how you are building and testing, not in the build system per se. On the other hand, I'm currently having multiple issues myself when trying to do just a "make images && make run-test-tier1" on my machine when I tried to reproduce your problem. It is not clear to me what is causing this, but at least one was due to too high parallelism. The test concurrency has been tweaked lately, but only with our build and test farms in mind. We should definitely look into that testing on a developer machine still works out of the box.
> 
> I cannot comment on the validity of the build despite the test failures. It seems likely that the test failures are due to problems running the tests, rather than indicating issues with the built JDK, but there's no way to be sure.
> 
> Have you tried the "sledgehammer approach" from doc/building.md, i.e. removing the forest and re-cloning it? At least, try to make a make clean-dist and re-run everything (make images, make run-test TEST="tier1"). Please check that a test image is indeed in the build/*/images directory after running "make run-test". I'm still confused as to why jtreg does not find the test image. That's really odd, even if there is potentially more issues involved.
> 
> /Magnus
> 
>> 
>> 
>>> On Jan 9, 2018, at 9:39 AM, Alan Snyder <javalists at cbfiddle.com> wrote:
>>> 
>>> I already tried make test-image; make run-test-tier1 and it had no impact on the outcome. Given that, do you still want me to try your suggestion?
>>> 
>>>  Alan
>>> 
>>> 
>>>> On Jan 8, 2018, at 11:28 PM, Magnus Ihse Bursie <magnus.ihse.bursie at oracle.com> wrote:
>>>> 
>>>> 
>>>>> 8 jan. 2018 kl. 23:23 skrev David Holmes <david.holmes at oracle.com>:
>>>>> 
>>>>>> On 9/01/2018 4:35 AM, Jonathan Gibbons wrote:
>>>>>> Maybe the Makefile targets to run tests could report an up-front warning if the native libraries have not been built.
>>>>> Based on my observations the makefile target will also build the test-image if needed.
>>>> That's the idea, yes. However I'm afraid there might be a bug wrt this when using the generated "run-test-*" targets, as opposed to the generic "run-test" target. :(
>>>> 
>>>> Alan, can you try running "make run-test TEST=tier1" instead? This should definitely pull in the generation of the test image.
>>>> 
>>>> I also do apologize that the simple build README instructions did not work out of the box. :(
>>>> 
>>>> /Magnus
>>>> 
>>>>> David
>>>>> 
>>>>>> A more advanced solution would be to use jtreg to determine if any native tests will be run (using some combination of `-k native` and `-listtests`) and if any such tests are found, then require the library to be available.
>>>>>> -- Jon
>>>>>> On 01/05/2018 06:37 PM, Alan Snyder wrote:
>>>>>>> Following the instructions for the impatient, I did make images and then make run-test-tier1.
>>>>>>> Then after replacing the jtreg with the one Jon recommended, I did make run-test-tier1 again.
>>>>>>> 
>>>>>>>  Alan
>>>>>>> 
>>>>>>> 
>>>>>>>> On Jan 5, 2018, at 6:32 PM, David Holmes <david.holmes at oracle.com> wrote:
>>>>>>>> 
>>>>>>>> On 6/01/2018 12:05 PM, Alan Snyder wrote:
>>>>>>>>> The tests were run via make.
>>>>>>>> How exactly? And did you do "make test-image" first?
>>>>>>>> 
>>>>>>>> David
>>>>>>>> 
>>>>>>>>>> On Jan 5, 2018, at 4:13 PM, David Holmes <david.holmes at oracle.com> wrote:
>>>>>>>>>> 
>>>>>>>>>> Alan,
>>>>>>>>>> 
>>>>>>>>>> Unclear how you ran the tests, but:
>>>>>>>>>> 
>>>>>>>>>> TEST RESULT: Error. Use -nativepath to specify the location of native code
>>>>>>>>>> 
>>>>>>>>>> indicates jtreg was not passed the -nativepath flag. That may or may not be a build issue depending on whether the tests were executed directly or via "make".
>>>>>>>>>> 
>>>>>>>>>> Cheers,
>>>>>>>>>> David
>>>>>>>>>> 
>>>>>>>>>>> On 6/01/2018 8:43 AM, Alan Snyder wrote:
>>>>>>>>>>> 5 test failures remain using jtreg-4.2.0-tip:
>>>>>>>>>>> --------------------------------------------------
>>>>>>>>>>> TEST: java/lang/String/nativeEncoding/StringPlatformChars.java
>>>>>>>>>>> TEST JDK: /Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/images/jdk
>>>>>>>>>>> ACTION: build -- Passed. Build successful
>>>>>>>>>>> REASON: Named class compiled on demand
>>>>>>>>>>> TIME: 1.179 seconds
>>>>>>>>>>> messages:
>>>>>>>>>>> command: build StringPlatformChars
>>>>>>>>>>> reason: Named class compiled on demand
>>>>>>>>>>> Test directory:
>>>>>>>>>>> compile: StringPlatformChars
>>>>>>>>>>> elapsed time (seconds): 1.179
>>>>>>>>>>> ACTION: compile -- Passed. Compilation successful
>>>>>>>>>>> REASON: .class file out of date or does not exist
>>>>>>>>>>> TIME: 0.626 seconds
>>>>>>>>>>> messages:
>>>>>>>>>>> command: compile /Volumes/A/JDK/jdk10/test/jdk/java/lang/String/nativeEncoding/StringPlatformChars.java
>>>>>>>>>>> reason: .class file out of date or does not exist
>>>>>>>>>>> Mode: agentvm
>>>>>>>>>>> Agent id: 1
>>>>>>>>>>> elapsed time (seconds): 0.626
>>>>>>>>>>> configuration:
>>>>>>>>>>> Boot Layer (javac runtime environment)
>>>>>>>>>>> class path: /Users/alan/javalib/share/jtreg/lib/javatest.jar
>>>>>>>>>>> /Users/alan/javalib/share/jtreg/lib/jtreg.jar
>>>>>>>>>>> patch: java.base /Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_jdk_tier1/patches/java.base
>>>>>>>>>>> javac compilation environment
>>>>>>>>>>> source path: /Volumes/A/JDK/jdk10/test/jdk/java/lang/String/nativeEncoding
>>>>>>>>>>> class path: /Volumes/A/JDK/jdk10/test/jdk/java/lang/String/nativeEncoding
>>>>>>>>>>> /Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_jdk_tier1/classes/4/java/lang/String/nativeEncoding/StringPlatformChars.d
>>>>>>>>>>> rerun:
>>>>>>>>>>> cd /Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_jdk_tier1/scratch/0 && \
>>>>>>>>>>> HOME=/Users/alan \
>>>>>>>>>>> JDK8_HOME=/Library/Java/JavaVirtualMachines/1.9.0.jdk/Contents/Home \
>>>>>>>>>>> LANG=en_US.UTF-8 \
>>>>>>>>>>> LC_ALL=en_US.UTF-8 \
>>>>>>>>>>> PATH=/bin:/usr/bin \
>>>>>>>>>>> /Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/images/jdk/bin/javac \
>>>>>>>>>>> -J-Xmx512m \
>>>>>>>>>>> -J-XX:MaxRAMPercentage=3 \
>>>>>>>>>>> -J-ea \
>>>>>>>>>>> -J-esa \
>>>>>>>>>>> -J-Dtest.class.path.prefix=/Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_jdk_tier1/classes/4/java/lang/String/nativeEncoding/StringPlatformChars.d:/Volumes/A/JDK/jdk10/test/jdk/java/lang/String/nativeEncoding \
>>>>>>>>>>> -J-Dtest.src=/Volumes/A/JDK/jdk10/test/jdk/java/lang/String/nativeEncoding \
>>>>>>>>>>> -J-Dtest.src.path=/Volumes/A/JDK/jdk10/test/jdk/java/lang/String/nativeEncoding \
>>>>>>>>>>> -J-Dtest.classes=/Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_jdk_tier1/classes/4/java/lang/String/nativeEncoding/StringPlatformChars.d \
>>>>>>>>>>> -J-Dtest.class.path=/Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_jdk_tier1/classes/4/java/lang/String/nativeEncoding/StringPlatformChars.d \
>>>>>>>>>>> -J-Dtest.vm.opts='-Xmx512m -XX:MaxRAMPercentage=3 -ea -esa' \
>>>>>>>>>>> -J-Dtest.tool.vm.opts='-J-Xmx512m -J-XX:MaxRAMPercentage=3 -J-ea -J-esa' \
>>>>>>>>>>> -J-Dtest.compiler.opts= \
>>>>>>>>>>> -J-Dtest.java.opts= \
>>>>>>>>>>> -J-Dtest.jdk=/Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/images/jdk \
>>>>>>>>>>> -J-Dcompile.jdk=/Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/images/jdk \
>>>>>>>>>>> -J-Dtest.timeout.factor=4.0 \
>>>>>>>>>>> -d /Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_jdk_tier1/classes/4/java/lang/String/nativeEncoding/StringPlatformChars.d \
>>>>>>>>>>> -sourcepath /Volumes/A/JDK/jdk10/test/jdk/java/lang/String/nativeEncoding \
>>>>>>>>>>> -classpath /Volumes/A/JDK/jdk10/test/jdk/java/lang/String/nativeEncoding:/Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_jdk_tier1/classes/4/java/lang/String/nativeEncoding/StringPlatformChars.d /Volumes/A/JDK/jdk10/test/jdk/java/lang/String/nativeEncoding/StringPlatformChars.java
>>>>>>>>>>> TEST RESULT: Error. Use -nativepath to specify the location of native code
>>>>>>>>>>> --------------------------------------------------
>>>>>>>>>>> TEST: jdk/internal/misc/JavaLangAccess/NewUnsafeString.java
>>>>>>>>>>> TEST JDK: /Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/images/jdk
>>>>>>>>>>> ACTION: compile -- Passed. Compilation successful
>>>>>>>>>>> REASON: User specified action: run compile -XDignore.symbol.file NewUnsafeString.java
>>>>>>>>>>> TIME: 0.03 seconds
>>>>>>>>>>> messages:
>>>>>>>>>>> command: compile -XDignore.symbol.file /Volumes/A/JDK/jdk10/test/jdk/jdk/internal/misc/JavaLangAccess/NewUnsafeString.java
>>>>>>>>>>> reason: User specified action: run compile -XDignore.symbol.file NewUnsafeString.java
>>>>>>>>>>> Additional options from @modules: --add-modules java.base --add-exports java.base/jdk.internal.misc=ALL-UNNAMED
>>>>>>>>>>> Mode: agentvm
>>>>>>>>>>> Agent id: 1
>>>>>>>>>>> elapsed time (seconds): 0.03
>>>>>>>>>>> configuration:
>>>>>>>>>>> Boot Layer (javac runtime environment)
>>>>>>>>>>> class path: /Users/alan/javalib/share/jtreg/lib/javatest.jar
>>>>>>>>>>> /Users/alan/javalib/share/jtreg/lib/jtreg.jar
>>>>>>>>>>> patch: java.base /Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_jdk_tier1/patches/java.base
>>>>>>>>>>> javac compilation environment
>>>>>>>>>>> add modules: java.base
>>>>>>>>>>> add exports: java.base/jdk.internal.misc ALL-UNNAMED
>>>>>>>>>>> source path: /Volumes/A/JDK/jdk10/test/jdk/jdk/internal/misc/JavaLangAccess
>>>>>>>>>>> class path: /Volumes/A/JDK/jdk10/test/jdk/jdk/internal/misc/JavaLangAccess
>>>>>>>>>>> /Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_jdk_tier1/classes/4/jdk/internal/misc/JavaLangAccess/NewUnsafeString.d
>>>>>>>>>>> rerun:
>>>>>>>>>>> cd /Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_jdk_tier1/scratch/0 && \
>>>>>>>>>>> HOME=/Users/alan \
>>>>>>>>>>> JDK8_HOME=/Library/Java/JavaVirtualMachines/1.9.0.jdk/Contents/Home \
>>>>>>>>>>> LANG=en_US.UTF-8 \
>>>>>>>>>>> LC_ALL=en_US.UTF-8 \
>>>>>>>>>>> PATH=/bin:/usr/bin \
>>>>>>>>>>> /Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/images/jdk/bin/javac \
>>>>>>>>>>> -J-Xmx512m \
>>>>>>>>>>> -J-XX:MaxRAMPercentage=3 \
>>>>>>>>>>> -J-ea \
>>>>>>>>>>> -J-esa \
>>>>>>>>>>> -J-Dtest.class.path.prefix=/Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_jdk_tier1/classes/4/jdk/internal/misc/JavaLangAccess/NewUnsafeString.d:/Volumes/A/JDK/jdk10/test/jdk/jdk/internal/misc/JavaLangAccess \
>>>>>>>>>>> -J-Dtest.src=/Volumes/A/JDK/jdk10/test/jdk/jdk/internal/misc/JavaLangAccess \
>>>>>>>>>>> -J-Dtest.src.path=/Volumes/A/JDK/jdk10/test/jdk/jdk/internal/misc/JavaLangAccess \
>>>>>>>>>>> -J-Dtest.classes=/Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_jdk_tier1/classes/4/jdk/internal/misc/JavaLangAccess/NewUnsafeString.d \
>>>>>>>>>>> -J-Dtest.class.path=/Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_jdk_tier1/classes/4/jdk/internal/misc/JavaLangAccess/NewUnsafeString.d \
>>>>>>>>>>> -J-Dtest.vm.opts='-Xmx512m -XX:MaxRAMPercentage=3 -ea -esa' \
>>>>>>>>>>> -J-Dtest.tool.vm.opts='-J-Xmx512m -J-XX:MaxRAMPercentage=3 -J-ea -J-esa' \
>>>>>>>>>>> -J-Dtest.compiler.opts= \
>>>>>>>>>>> -J-Dtest.java.opts= \
>>>>>>>>>>> -J-Dtest.jdk=/Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/images/jdk \
>>>>>>>>>>> -J-Dcompile.jdk=/Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/images/jdk \
>>>>>>>>>>> -J-Dtest.timeout.factor=4.0 \
>>>>>>>>>>> -J-Dtest.modules=java.base/jdk.internal.misc \
>>>>>>>>>>> --add-modules java.base \
>>>>>>>>>>> --add-exports java.base/jdk.internal.misc=ALL-UNNAMED \
>>>>>>>>>>> -d /Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_jdk_tier1/classes/4/jdk/internal/misc/JavaLangAccess/NewUnsafeString.d \
>>>>>>>>>>> -sourcepath /Volumes/A/JDK/jdk10/test/jdk/jdk/internal/misc/JavaLangAccess \
>>>>>>>>>>> -classpath /Volumes/A/JDK/jdk10/test/jdk/jdk/internal/misc/JavaLangAccess:/Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_jdk_tier1/classes/4/jdk/internal/misc/JavaLangAccess/NewUnsafeString.d \
>>>>>>>>>>> -XDignore.symbol.file /Volumes/A/JDK/jdk10/test/jdk/jdk/internal/misc/JavaLangAccess/NewUnsafeString.java
>>>>>>>>>>> ACTION: build -- Passed. All files up to date
>>>>>>>>>>> REASON: Named class compiled on demand
>>>>>>>>>>> TIME: 0.0 seconds
>>>>>>>>>>> messages:
>>>>>>>>>>> command: build NewUnsafeString
>>>>>>>>>>> reason: Named class compiled on demand
>>>>>>>>>>> elapsed time (seconds): 0.0
>>>>>>>>>>> ACTION: main -- Failed. Execution failed: `main' threw exception: java.lang.Error: jla.newStringUnsafe did not use provided string
>>>>>>>>>>> REASON: User specified action: run main NewUnsafeString
>>>>>>>>>>> TIME: 0.004 seconds
>>>>>>>>>>> messages:
>>>>>>>>>>> command: main NewUnsafeString
>>>>>>>>>>> reason: User specified action: run main NewUnsafeString
>>>>>>>>>>> Mode: agentvm
>>>>>>>>>>> Agent id: 1
>>>>>>>>>>> Additional exports to unnamed modules from @modules: java.base/jdk.internal.misc
>>>>>>>>>>> elapsed time (seconds): 0.004
>>>>>>>>>>> configuration:
>>>>>>>>>>> Boot Layer
>>>>>>>>>>> class path: /Users/alan/javalib/share/jtreg/lib/javatest.jar
>>>>>>>>>>> /Users/alan/javalib/share/jtreg/lib/jtreg.jar
>>>>>>>>>>> patch: java.base /Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_jdk_tier1/patches/java.base
>>>>>>>>>>> Test Layer
>>>>>>>>>>> add exports: java.base/jdk.internal.misc ALL-UNNAMED
>>>>>>>>>>> class path: /Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_jdk_tier1/classes/4/jdk/internal/misc/JavaLangAccess/NewUnsafeString.d
>>>>>>>>>>> /Volumes/A/JDK/jdk10/test/jdk/jdk/internal/misc/JavaLangAccess
>>>>>>>>>>> rerun:
>>>>>>>>>>> cd /Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_jdk_tier1/scratch/0 && \
>>>>>>>>>>> HOME=/Users/alan \
>>>>>>>>>>> JDK8_HOME=/Library/Java/JavaVirtualMachines/1.9.0.jdk/Contents/Home \
>>>>>>>>>>> LANG=en_US.UTF-8 \
>>>>>>>>>>> LC_ALL=en_US.UTF-8 \
>>>>>>>>>>> PATH=/bin:/usr/bin \
>>>>>>>>>>> /Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/images/jdk/bin/java \
>>>>>>>>>>> -Dtest.class.path.prefix=/Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_jdk_tier1/classes/4/jdk/internal/misc/JavaLangAccess/NewUnsafeString.d:/Volumes/A/JDK/jdk10/test/jdk/jdk/internal/misc/JavaLangAccess \
>>>>>>>>>>> -Dtest.src=/Volumes/A/JDK/jdk10/test/jdk/jdk/internal/misc/JavaLangAccess \
>>>>>>>>>>> -Dtest.src.path=/Volumes/A/JDK/jdk10/test/jdk/jdk/internal/misc/JavaLangAccess \
>>>>>>>>>>> -Dtest.classes=/Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_jdk_tier1/classes/4/jdk/internal/misc/JavaLangAccess/NewUnsafeString.d \
>>>>>>>>>>> -Dtest.class.path=/Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_jdk_tier1/classes/4/jdk/internal/misc/JavaLangAccess/NewUnsafeString.d \
>>>>>>>>>>> -Dtest.vm.opts='-Xmx512m -XX:MaxRAMPercentage=3 -ea -esa' \
>>>>>>>>>>> -Dtest.tool.vm.opts='-J-Xmx512m -J-XX:MaxRAMPercentage=3 -J-ea -J-esa' \
>>>>>>>>>>> -Dtest.compiler.opts= \
>>>>>>>>>>> -Dtest.java.opts= \
>>>>>>>>>>> -Dtest.jdk=/Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/images/jdk \
>>>>>>>>>>> -Dcompile.jdk=/Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/images/jdk \
>>>>>>>>>>> -Dtest.timeout.factor=4.0 \
>>>>>>>>>>> -Dtest.modules=java.base/jdk.internal.misc \
>>>>>>>>>>> -classpath /Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_jdk_tier1/classes/4/jdk/internal/misc/JavaLangAccess/NewUnsafeString.d:/Volumes/A/JDK/jdk10/test/jdk/jdk/internal/misc/JavaLangAccess:/Users/alan/javalib/share/jtreg/lib/javatest.jar:/Users/alan/javalib/share/jtreg/lib/jtreg.jar \
>>>>>>>>>>> NewUnsafeString
>>>>>>>>>>> STDERR:
>>>>>>>>>>> java.lang.Error: jla.newStringUnsafe did not use provided string
>>>>>>>>>>> at NewUnsafeString.testNewUnsafeString(NewUnsafeString.java:80)
>>>>>>>>>>> at NewUnsafeString.main(NewUnsafeString.java:86)
>>>>>>>>>>> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>>>>> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>>>>>>>> at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>>>>>> at java.base/java.lang.reflect.Method.invoke(Method.java:564)
>>>>>>>>>>> at com.sun.javatest.regtest.agent.MainActionHelper$SameVMRunnable.run(MainActionHelper.java:229)
>>>>>>>>>>> at java.base/java.lang.Thread.run(Thread.java:844)
>>>>>>>>>>> JavaTest Message: Test threw exception: java.lang.Error
>>>>>>>>>>> JavaTest Message: shutting down test
>>>>>>>>>>> TEST RESULT: Failed. Execution failed: `main' threw exception: java.lang.Error: jla.newStringUnsafe did not use provided string
>>>>>>>>>>> --------------------------------------------------
>>>>>>>>>>> TEST: tools/sjavac/ApiExtraction.java
>>>>>>>>>>> TEST JDK: /Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/images/jdk
>>>>>>>>>>> ACTION: build -- Passed. Build successful
>>>>>>>>>>> REASON: User specified action: run build Wrapper toolbox.ToolBox toolbox.JavacTask
>>>>>>>>>>> TIME: 0.081 seconds
>>>>>>>>>>> messages:
>>>>>>>>>>> command: build Wrapper toolbox.ToolBox toolbox.JavacTask
>>>>>>>>>>> reason: User specified action: run build Wrapper toolbox.ToolBox toolbox.JavacTask
>>>>>>>>>>> Test directory:
>>>>>>>>>>> compile: Wrapper
>>>>>>>>>>> elapsed time (seconds): 0.081
>>>>>>>>>>> ACTION: compile -- Passed. Compilation successful
>>>>>>>>>>> REASON: .class file out of date or does not exist
>>>>>>>>>>> TIME: 0.08 seconds
>>>>>>>>>>> messages:
>>>>>>>>>>> command: compile /Volumes/A/JDK/jdk10/test/langtools/tools/sjavac/Wrapper.java
>>>>>>>>>>> reason: .class file out of date or does not exist
>>>>>>>>>>> Additional options from @modules: --add-modules jdk.compiler --add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.sjavac=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.sjavac.options=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.sjavac.pubapi=ALL-UNNAMED
>>>>>>>>>>> Mode: agentvm
>>>>>>>>>>> Agent id: 14
>>>>>>>>>>> elapsed time (seconds): 0.08
>>>>>>>>>>> configuration:
>>>>>>>>>>> Boot Layer (javac runtime environment)
>>>>>>>>>>> class path: /Users/alan/javalib/share/jtreg/lib/javatest.jar
>>>>>>>>>>> /Users/alan/javalib/share/jtreg/lib/jtreg.jar
>>>>>>>>>>> patch: java.base /Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_langtools_tier1/patches/java.base
>>>>>>>>>>> javac compilation environment
>>>>>>>>>>> add modules: jdk.compiler
>>>>>>>>>>> add exports: jdk.compiler/com.sun.tools.javac.api ALL-UNNAMED
>>>>>>>>>>> jdk.compiler/com.sun.tools.javac.main ALL-UNNAMED
>>>>>>>>>>> jdk.compiler/com.sun.tools.sjavac ALL-UNNAMED
>>>>>>>>>>> jdk.compiler/com.sun.tools.sjavac.options ALL-UNNAMED
>>>>>>>>>>> jdk.compiler/com.sun.tools.sjavac.pubapi ALL-UNNAMED
>>>>>>>>>>> source path: /Volumes/A/JDK/jdk10/test/langtools/tools/sjavac
>>>>>>>>>>> /Volumes/A/JDK/jdk10/test/langtools/tools/lib
>>>>>>>>>>> class path: /Volumes/A/JDK/jdk10/test/langtools/tools/sjavac
>>>>>>>>>>> /Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_langtools_tier1/classes/4/tools/sjavac/ApiExtraction.d
>>>>>>>>>>> /Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_langtools_tier1/classes/4/tools/lib
>>>>>>>>>>> rerun:
>>>>>>>>>>> cd /Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_langtools_tier1/scratch/5 && \
>>>>>>>>>>> HOME=/Users/alan \
>>>>>>>>>>> JDK8_HOME=/Library/Java/JavaVirtualMachines/1.9.0.jdk/Contents/Home \
>>>>>>>>>>> LANG=en_US.UTF-8 \
>>>>>>>>>>> LC_ALL=en_US.UTF-8 \
>>>>>>>>>>> PATH=/bin:/usr/bin \
>>>>>>>>>>> /Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/images/jdk/bin/javac \
>>>>>>>>>>> -J-Xmx512m \
>>>>>>>>>>> -J-XX:MaxRAMPercentage=3 \
>>>>>>>>>>> -J-ea \
>>>>>>>>>>> -J-esa \
>>>>>>>>>>> -J-Dtest.class.path.prefix=/Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_langtools_tier1/classes/4/tools/sjavac/ApiExtraction.d:/Volumes/A/JDK/jdk10/test/langtools/tools/sjavac:/Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_langtools_tier1/classes/4/tools/lib \
>>>>>>>>>>> -J-Dtest.src=/Volumes/A/JDK/jdk10/test/langtools/tools/sjavac \
>>>>>>>>>>> -J-Dtest.src.path=/Volumes/A/JDK/jdk10/test/langtools/tools/sjavac:/Volumes/A/JDK/jdk10/test/langtools/tools/lib \
>>>>>>>>>>> -J-Dtest.classes=/Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_langtools_tier1/classes/4/tools/sjavac/ApiExtraction.d \
>>>>>>>>>>> -J-Dtest.class.path=/Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_langtools_tier1/classes/4/tools/sjavac/ApiExtraction.d:/Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_langtools_tier1/classes/4/tools/lib \
>>>>>>>>>>> -J-Dtest.vm.opts='-Xmx512m -XX:MaxRAMPercentage=3 -ea -esa' \
>>>>>>>>>>> -J-Dtest.tool.vm.opts='-J-Xmx512m -J-XX:MaxRAMPercentage=3 -J-ea -J-esa' \
>>>>>>>>>>> -J-Dtest.compiler.opts= \
>>>>>>>>>>> -J-Dtest.java.opts= \
>>>>>>>>>>> -J-Dtest.jdk=/Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/images/jdk \
>>>>>>>>>>> -J-Dcompile.jdk=/Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/images/jdk \
>>>>>>>>>>> -J-Dtest.timeout.factor=4.0 \
>>>>>>>>>>> -J-Dtest.modules='jdk.compiler/com.sun.tools.javac.api jdk.compiler/com.sun.tools.javac.main jdk.compiler/com.sun.tools.sjavac jdk.compiler/com.sun.tools.sjavac.options jdk.compiler/com.sun.tools.sjavac.pubapi' \
>>>>>>>>>>> --add-modules jdk.compiler \
>>>>>>>>>>> --add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED \
>>>>>>>>>>> --add-exports jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED \
>>>>>>>>>>> --add-exports jdk.compiler/com.sun.tools.sjavac=ALL-UNNAMED \
>>>>>>>>>>> --add-exports jdk.compiler/com.sun.tools.sjavac.options=ALL-UNNAMED \
>>>>>>>>>>> --add-exports jdk.compiler/com.sun.tools.sjavac.pubapi=ALL-UNNAMED \
>>>>>>>>>>> -d /Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_langtools_tier1/classes/4/tools/sjavac/ApiExtraction.d \
>>>>>>>>>>> -sourcepath /Volumes/A/JDK/jdk10/test/langtools/tools/sjavac:/Volumes/A/JDK/jdk10/test/langtools/tools/lib \
>>>>>>>>>>> -classpath /Volumes/A/JDK/jdk10/test/langtools/tools/sjavac:/Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_langtools_tier1/classes/4/tools/sjavac/ApiExtraction.d:/Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_langtools_tier1/classes/4/tools/lib /Volumes/A/JDK/jdk10/test/langtools/tools/sjavac/Wrapper.java
>>>>>>>>>>> ACTION: build -- Passed. All files up to date
>>>>>>>>>>> REASON: Named class compiled on demand
>>>>>>>>>>> TIME: 0.0 seconds
>>>>>>>>>>> messages:
>>>>>>>>>>> command: build Wrapper
>>>>>>>>>>> reason: Named class compiled on demand
>>>>>>>>>>> elapsed time (seconds): 0.0
>>>>>>>>>>> ACTION: main -- Failed. Execution failed: `main' threw exception: java.lang.reflect.InvocationTargetException
>>>>>>>>>>> REASON: User specified action: run main Wrapper ApiExtraction
>>>>>>>>>>> TIME: 0.263 seconds
>>>>>>>>>>> messages:
>>>>>>>>>>> command: main Wrapper ApiExtraction
>>>>>>>>>>> reason: User specified action: run main Wrapper ApiExtraction
>>>>>>>>>>> Mode: agentvm
>>>>>>>>>>> Agent id: 14
>>>>>>>>>>> Additional exports to unnamed modules from @modules: jdk.compiler/com.sun.tools.javac.api jdk.compiler/com.sun.tools.javac.main jdk.compiler/com.sun.tools.sjavac jdk.compiler/com.sun.tools.sjavac.options jdk.compiler/com.sun.tools.sjavac.pubapi
>>>>>>>>>>> elapsed time (seconds): 0.263
>>>>>>>>>>> configuration:
>>>>>>>>>>> Boot Layer
>>>>>>>>>>> class path: /Users/alan/javalib/share/jtreg/lib/javatest.jar
>>>>>>>>>>> /Users/alan/javalib/share/jtreg/lib/jtreg.jar
>>>>>>>>>>> patch: java.base /Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_langtools_tier1/patches/java.base
>>>>>>>>>>> Test Layer
>>>>>>>>>>> add exports: jdk.compiler/com.sun.tools.javac.api ALL-UNNAMED
>>>>>>>>>>> jdk.compiler/com.sun.tools.javac.main ALL-UNNAMED
>>>>>>>>>>> jdk.compiler/com.sun.tools.sjavac ALL-UNNAMED
>>>>>>>>>>> jdk.compiler/com.sun.tools.sjavac.options ALL-UNNAMED
>>>>>>>>>>> jdk.compiler/com.sun.tools.sjavac.pubapi ALL-UNNAMED
>>>>>>>>>>> class path: /Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_langtools_tier1/classes/4/tools/sjavac/ApiExtraction.d
>>>>>>>>>>> /Volumes/A/JDK/jdk10/test/langtools/tools/sjavac
>>>>>>>>>>> /Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_langtools_tier1/classes/4/tools/lib
>>>>>>>>>>> /Volumes/A/JDK/jdk10/test/langtools/tools/lib
>>>>>>>>>>> rerun:
>>>>>>>>>>> cd /Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_langtools_tier1/scratch/5 && \
>>>>>>>>>>> HOME=/Users/alan \
>>>>>>>>>>> JDK8_HOME=/Library/Java/JavaVirtualMachines/1.9.0.jdk/Contents/Home \
>>>>>>>>>>> LANG=en_US.UTF-8 \
>>>>>>>>>>> LC_ALL=en_US.UTF-8 \
>>>>>>>>>>> PATH=/bin:/usr/bin \
>>>>>>>>>>> /Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/images/jdk/bin/java \
>>>>>>>>>>> -Dtest.class.path.prefix=/Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_langtools_tier1/classes/4/tools/sjavac/ApiExtraction.d:/Volumes/A/JDK/jdk10/test/langtools/tools/sjavac:/Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_langtools_tier1/classes/4/tools/lib \
>>>>>>>>>>> -Dtest.src=/Volumes/A/JDK/jdk10/test/langtools/tools/sjavac \
>>>>>>>>>>> -Dtest.src.path=/Volumes/A/JDK/jdk10/test/langtools/tools/sjavac:/Volumes/A/JDK/jdk10/test/langtools/tools/lib \
>>>>>>>>>>> -Dtest.classes=/Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_langtools_tier1/classes/4/tools/sjavac/ApiExtraction.d \
>>>>>>>>>>> -Dtest.class.path=/Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_langtools_tier1/classes/4/tools/sjavac/ApiExtraction.d:/Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_langtools_tier1/classes/4/tools/lib \
>>>>>>>>>>> -Dtest.vm.opts='-Xmx512m -XX:MaxRAMPercentage=3 -ea -esa' \
>>>>>>>>>>> -Dtest.tool.vm.opts='-J-Xmx512m -J-XX:MaxRAMPercentage=3 -J-ea -J-esa' \
>>>>>>>>>>> -Dtest.compiler.opts= \
>>>>>>>>>>> -Dtest.java.opts= \
>>>>>>>>>>> -Dtest.jdk=/Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/images/jdk \
>>>>>>>>>>> -Dcompile.jdk=/Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/images/jdk \
>>>>>>>>>>> -Dtest.timeout.factor=4.0 \
>>>>>>>>>>> -Dtest.modules='jdk.compiler/com.sun.tools.javac.api jdk.compiler/com.sun.tools.javac.main jdk.compiler/com.sun.tools.sjavac jdk.compiler/com.sun.tools.sjavac.options jdk.compiler/com.sun.tools.sjavac.pubapi' \
>>>>>>>>>>> -classpath /Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_langtools_tier1/classes/4/tools/sjavac/ApiExtraction.d:/Volumes/A/JDK/jdk10/test/langtools/tools/sjavac:/Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_langtools_tier1/classes/4/tools/lib:/Volumes/A/JDK/jdk10/test/langtools/tools/lib:/Users/alan/javalib/share/jtreg/lib/javatest.jar:/Users/alan/javalib/share/jtreg/lib/jtreg.jar \
>>>>>>>>>>> Wrapper ApiExtraction
>>>>>>>>>>> STDOUT:
>>>>>>>>>>> javac: [-d, /Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_langtools_tier1/classes/4/tools/sjavac/ApiExtraction.d, -sourcepath, /Volumes/A/JDK/jdk10/test/langtools/tools/sjavac, -classpath, /Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_langtools_tier1/classes/4/tools/sjavac/ApiExtraction.d:/Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_langtools_tier1/classes/4/tools/lib, --add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED, --add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED, --add-exports=jdk.compiler/com.sun.tools.sjavac=ALL-UNNAMED, --add-exports=jdk.compiler/com.sun.tools.sjavac.options=ALL-UNNAMED, --add-exports=jdk.compiler/com.sun.tools.sjavac.pubapi=ALL-UNNAMED, /Volumes/A/JDK/jdk10/test/langtools/tools/sjavac/ApiExtraction.java]
>>>>>>>>>>> STDERR:
>>>>>>>>>>> Recompiling test class...
>>>>>>>>>>> java.lang.reflect.InvocationTargetException
>>>>>>>>>>> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>>>>> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>>>>>>>> at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>>>>>> at java.base/java.lang.reflect.Method.invoke(Method.java:564)
>>>>>>>>>>> at Wrapper.main(Wrapper.java:72)
>>>>>>>>>>> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>>>>> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>>>>>>>> at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>>>>>> at java.base/java.lang.reflect.Method.invoke(Method.java:564)
>>>>>>>>>>> at com.sun.javatest.regtest.agent.MainActionHelper$SameVMRunnable.run(MainActionHelper.java:229)
>>>>>>>>>>> at java.base/java.lang.Thread.run(Thread.java:844)
>>>>>>>>>>> Caused by: com.sun.tools.javac.code.Symbol$CompletionFailure: class file for TestClass not found
>>>>>>>>>>> JavaTest Message: Test threw exception: java.lang.reflect.InvocationTargetException
>>>>>>>>>>> JavaTest Message: shutting down test
>>>>>>>>>>> TEST RESULT: Failed. Execution failed: `main' threw exception: java.lang.reflect.InvocationTargetException
>>>>>>>>>>> --------------------------------------------------
>>>>>>>>>>> TEST: tools/sjavac/ClasspathDependencies.java
>>>>>>>>>>> TEST JDK: /Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/images/jdk
>>>>>>>>>>> ACTION: build -- Passed. Build successful
>>>>>>>>>>> REASON: User specified action: run build Wrapper toolbox.ToolBox toolbox.Assert
>>>>>>>>>>> TIME: 0.151 seconds
>>>>>>>>>>> messages:
>>>>>>>>>>> command: build Wrapper toolbox.ToolBox toolbox.Assert
>>>>>>>>>>> reason: User specified action: run build Wrapper toolbox.ToolBox toolbox.Assert
>>>>>>>>>>> Test directory:
>>>>>>>>>>> compile: Wrapper
>>>>>>>>>>> elapsed time (seconds): 0.151
>>>>>>>>>>> ACTION: compile -- Passed. Compilation successful
>>>>>>>>>>> REASON: .class file out of date or does not exist
>>>>>>>>>>> TIME: 0.15 seconds
>>>>>>>>>>> messages:
>>>>>>>>>>> command: compile /Volumes/A/JDK/jdk10/test/langtools/tools/sjavac/Wrapper.java
>>>>>>>>>>> reason: .class file out of date or does not exist
>>>>>>>>>>> Additional options from @modules: --add-modules jdk.compiler --add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED --add-exports jdk.compiler/com.sun.tools.sjavac=ALL-UNNAMED
>>>>>>>>>>> Mode: agentvm
>>>>>>>>>>> Agent id: 14
>>>>>>>>>>> elapsed time (seconds): 0.15
>>>>>>>>>>> configuration:
>>>>>>>>>>> Boot Layer (javac runtime environment)
>>>>>>>>>>> class path: /Users/alan/javalib/share/jtreg/lib/javatest.jar
>>>>>>>>>>> /Users/alan/javalib/share/jtreg/lib/jtreg.jar
>>>>>>>>>>> patch: java.base /Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_langtools_tier1/patches/java.base
>>>>>>>>>>> javac compilation environment
>>>>>>>>>>> add modules: jdk.compiler
>>>>>>>>>>> add exports: jdk.compiler/com.sun.tools.javac.api ALL-UNNAMED
>>>>>>>>>>> jdk.compiler/com.sun.tools.javac.main ALL-UNNAMED
>>>>>>>>>>> jdk.compiler/com.sun.tools.sjavac ALL-UNNAMED
>>>>>>>>>>> source path: /Volumes/A/JDK/jdk10/test/langtools/tools/sjavac
>>>>>>>>>>> /Volumes/A/JDK/jdk10/test/langtools/tools/lib
>>>>>>>>>>> class path: /Volumes/A/JDK/jdk10/test/langtools/tools/sjavac
>>>>>>>>>>> /Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_langtools_tier1/classes/4/tools/sjavac/ClasspathDependencies.d
>>>>>>>>>>> /Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_langtools_tier1/classes/4/tools/lib
>>>>>>>>>>> rerun:
>>>>>>>>>>> cd /Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_langtools_tier1/scratch/5 && \
>>>>>>>>>>> HOME=/Users/alan \
>>>>>>>>>>> JDK8_HOME=/Library/Java/JavaVirtualMachines/1.9.0.jdk/Contents/Home \
>>>>>>>>>>> LANG=en_US.UTF-8 \
>>>>>>>>>>> LC_ALL=en_US.UTF-8 \
>>>>>>>>>>> PATH=/bin:/usr/bin \
>>>>>>>>>>> /Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/images/jdk/bin/javac \
>>>>>>>>>>> -J-Xmx512m \
>>>>>>>>>>> -J-XX:MaxRAMPercentage=3 \
>>>>>>>>>>> -J-ea \
>>>>>>>>>>> -J-esa \
>>>>>>>>>>> -J-Dtest.class.path.prefix=/Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_langtools_tier1/classes/4/tools/sjavac/ClasspathDependencies.d:/Volumes/A/JDK/jdk10/test/langtools/tools/sjavac:/Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_langtools_tier1/classes/4/tools/lib \
>>>>>>>>>>> -J-Dtest.src=/Volumes/A/JDK/jdk10/test/langtools/tools/sjavac \
>>>>>>>>>>> -J-Dtest.src.path=/Volumes/A/JDK/jdk10/test/langtools/tools/sjavac:/Volumes/A/JDK/jdk10/test/langtools/tools/lib \
>>>>>>>>>>> -J-Dtest.classes=/Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_langtools_tier1/classes/4/tools/sjavac/ClasspathDependencies.d \
>>>>>>>>>>> -J-Dtest.class.path=/Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_langtools_tier1/classes/4/tools/sjavac/ClasspathDependencies.d:/Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_langtools_tier1/classes/4/tools/lib \
>>>>>>>>>>> -J-Dtest.vm.opts='-Xmx512m -XX:MaxRAMPercentage=3 -ea -esa' \
>>>>>>>>>>> -J-Dtest.tool.vm.opts='-J-Xmx512m -J-XX:MaxRAMPercentage=3 -J-ea -J-esa' \
>>>>>>>>>>> -J-Dtest.compiler.opts= \
>>>>>>>>>>> -J-Dtest.java.opts= \
>>>>>>>>>>> -J-Dtest.jdk=/Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/images/jdk \
>>>>>>>>>>> -J-Dcompile.jdk=/Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/images/jdk \
>>>>>>>>>>> -J-Dtest.timeout.factor=4.0 \
>>>>>>>>>>> -J-Dtest.modules='jdk.compiler/com.sun.tools.javac.api jdk.compiler/com.sun.tools.javac.main jdk.compiler/com.sun.tools.sjavac' \
>>>>>>>>>>> --add-modules jdk.compiler \
>>>>>>>>>>> --add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED \
>>>>>>>>>>> --add-exports jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED \
>>>>>>>>>>> --add-exports jdk.compiler/com.sun.tools.sjavac=ALL-UNNAMED \
>>>>>>>>>>> -d /Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_langtools_tier1/classes/4/tools/sjavac/ClasspathDependencies.d \
>>>>>>>>>>> -sourcepath /Volumes/A/JDK/jdk10/test/langtools/tools/sjavac:/Volumes/A/JDK/jdk10/test/langtools/tools/lib \
>>>>>>>>>>> -classpath /Volumes/A/JDK/jdk10/test/langtools/tools/sjavac:/Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_langtools_tier1/classes/4/tools/sjavac/ClasspathDependencies.d:/Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_langtools_tier1/classes/4/tools/lib /Volumes/A/JDK/jdk10/test/langtools/tools/sjavac/Wrapper.java
>>>>>>>>>>> ACTION: build -- Passed. All files up to date
>>>>>>>>>>> REASON: Named class compiled on demand
>>>>>>>>>>> TIME: 0.0 seconds
>>>>>>>>>>> messages:
>>>>>>>>>>> command: build Wrapper
>>>>>>>>>>> reason: Named class compiled on demand
>>>>>>>>>>> elapsed time (seconds): 0.0
>>>>>>>>>>> ACTION: main -- Failed. Execution failed: `main' threw exception: java.lang.reflect.InvocationTargetException
>>>>>>>>>>> REASON: User specified action: run main Wrapper ClasspathDependencies
>>>>>>>>>>> TIME: 2.306 seconds
>>>>>>>>>>> messages:
>>>>>>>>>>> command: main Wrapper ClasspathDependencies
>>>>>>>>>>> reason: User specified action: run main Wrapper ClasspathDependencies
>>>>>>>>>>> Mode: agentvm
>>>>>>>>>>> Agent id: 14
>>>>>>>>>>> Additional exports to unnamed modules from @modules: jdk.compiler/com.sun.tools.javac.api jdk.compiler/com.sun.tools.javac.main jdk.compiler/com.sun.tools.sjavac
>>>>>>>>>>> elapsed time (seconds): 2.306
>>>>>>>>>>> configuration:
>>>>>>>>>>> Boot Layer
>>>>>>>>>>> class path: /Users/alan/javalib/share/jtreg/lib/javatest.jar
>>>>>>>>>>> /Users/alan/javalib/share/jtreg/lib/jtreg.jar
>>>>>>>>>>> patch: java.base /Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_langtools_tier1/patches/java.base
>>>>>>>>>>> Test Layer
>>>>>>>>>>> add exports: jdk.compiler/com.sun.tools.javac.api ALL-UNNAMED
>>>>>>>>>>> jdk.compiler/com.sun.tools.javac.main ALL-UNNAMED
>>>>>>>>>>> jdk.compiler/com.sun.tools.sjavac ALL-UNNAMED
>>>>>>>>>>> class path: /Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_langtools_tier1/classes/4/tools/sjavac/ClasspathDependencies.d
>>>>>>>>>>> /Volumes/A/JDK/jdk10/test/langtools/tools/sjavac
>>>>>>>>>>> /Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_langtools_tier1/classes/4/tools/lib
>>>>>>>>>>> /Volumes/A/JDK/jdk10/test/langtools/tools/lib
>>>>>>>>>>> rerun:
>>>>>>>>>>> cd /Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_langtools_tier1/scratch/5 && \
>>>>>>>>>>> HOME=/Users/alan \
>>>>>>>>>>> JDK8_HOME=/Library/Java/JavaVirtualMachines/1.9.0.jdk/Contents/Home \
>>>>>>>>>>> LANG=en_US.UTF-8 \
>>>>>>>>>>> LC_ALL=en_US.UTF-8 \
>>>>>>>>>>> PATH=/bin:/usr/bin \
>>>>>>>>>>> /Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/images/jdk/bin/java \
>>>>>>>>>>> -Dtest.class.path.prefix=/Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_langtools_tier1/classes/4/tools/sjavac/ClasspathDependencies.d:/Volumes/A/JDK/jdk10/test/langtools/tools/sjavac:/Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_langtools_tier1/classes/4/tools/lib \
>>>>>>>>>>> -Dtest.src=/Volumes/A/JDK/jdk10/test/langtools/tools/sjavac \
>>>>>>>>>>> -Dtest.src.path=/Volumes/A/JDK/jdk10/test/langtools/tools/sjavac:/Volumes/A/JDK/jdk10/test/langtools/tools/lib \
>>>>>>>>>>> -Dtest.classes=/Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_langtools_tier1/classes/4/tools/sjavac/ClasspathDependencies.d \
>>>>>>>>>>> -Dtest.class.path=/Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_langtools_tier1/classes/4/tools/sjavac/ClasspathDependencies.d:/Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_langtools_tier1/classes/4/tools/lib \
>>>>>>>>>>> -Dtest.vm.opts='-Xmx512m -XX:MaxRAMPercentage=3 -ea -esa' \
>>>>>>>>>>> -Dtest.tool.vm.opts='-J-Xmx512m -J-XX:MaxRAMPercentage=3 -J-ea -J-esa' \
>>>>>>>>>>> -Dtest.compiler.opts= \
>>>>>>>>>>> -Dtest.java.opts= \
>>>>>>>>>>> -Dtest.jdk=/Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/images/jdk \
>>>>>>>>>>> -Dcompile.jdk=/Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/images/jdk \
>>>>>>>>>>> -Dtest.timeout.factor=4.0 \
>>>>>>>>>>> -Dtest.modules='jdk.compiler/com.sun.tools.javac.api jdk.compiler/com.sun.tools.javac.main jdk.compiler/com.sun.tools.sjavac' \
>>>>>>>>>>> -classpath /Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_langtools_tier1/classes/4/tools/sjavac/ClasspathDependencies.d:/Volumes/A/JDK/jdk10/test/langtools/tools/sjavac:/Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_langtools_tier1/classes/4/tools/lib:/Volumes/A/JDK/jdk10/test/langtools/tools/lib:/Users/alan/javalib/share/jtreg/lib/javatest.jar:/Users/alan/javalib/share/jtreg/lib/jtreg.jar \
>>>>>>>>>>> Wrapper ClasspathDependencies
>>>>>>>>>>> STDOUT:
>>>>>>>>>>> javac: [-d, /Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_langtools_tier1/classes/4/tools/sjavac/ClasspathDependencies.d, -sourcepath, /Volumes/A/JDK/jdk10/test/langtools/tools/sjavac, -classpath, /Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_langtools_tier1/classes/4/tools/sjavac/ClasspathDependencies.d:/Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_langtools_tier1/classes/4/tools/lib, --add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED, --add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED, --add-exports=jdk.compiler/com.sun.tools.sjavac=ALL-UNNAMED, /Volumes/A/JDK/jdk10/test/langtools/tools/sjavac/ClasspathDependencies.java]
>>>>>>>>>>> Create a test dependency, Dep.class, and put it in the classpath dir
>>>>>>>>>>> --------------------------------------------------------------------
>>>>>>>>>>> compile: [-d, ClasspathDependenciesTest/classesDep, --state-dir=ClasspathDependenciesTest/classesDep, ClasspathDependenciesTest/srcDep]
>>>>>>>>>>> Compile and link against the Dep.class
>>>>>>>>>>> --------------------------------------
>>>>>>>>>>> compile: [-d, ClasspathDependenciesTest/classes, --state-dir=ClasspathDependenciesTest/classes, ClasspathDependenciesTest/src, -cp, ClasspathDependenciesTest/classesDep]
>>>>>>>>>>> Update dependency (without changing the public api)
>>>>>>>>>>> ---------------------------------------------------
>>>>>>>>>>> compile: [-d, ClasspathDependenciesTest/classesDep, --state-dir=ClasspathDependenciesTest/classesDep, ClasspathDependenciesTest/srcDep]
>>>>>>>>>>> Make sure that this does not trigger recompilation of C.java
>>>>>>>>>>> ------------------------------------------------------------
>>>>>>>>>>> compile: [-d, ClasspathDependenciesTest/classes, --state-dir=ClasspathDependenciesTest/classes, ClasspathDependenciesTest/src, -cp, ClasspathDependenciesTest/classesDep]
>>>>>>>>>>> STDERR:
>>>>>>>>>>> Recompiling test class...
>>>>>>>>>>> java.lang.reflect.InvocationTargetException
>>>>>>>>>>> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>>>>> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>>>>>>>> at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>>>>>> at java.base/java.lang.reflect.Method.invoke(Method.java:564)
>>>>>>>>>>> at Wrapper.main(Wrapper.java:72)
>>>>>>>>>>> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>>>>> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>>>>>>>> at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>>>>>> at java.base/java.lang.reflect.Method.invoke(Method.java:564)
>>>>>>>>>>> at com.sun.javatest.regtest.agent.MainActionHelper$SameVMRunnable.run(MainActionHelper.java:229)
>>>>>>>>>>> at java.base/java.lang.Thread.run(Thread.java:844)
>>>>>>>>>>> Caused by: java.lang.reflect.InvocationTargetException
>>>>>>>>>>> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>>>>> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>>>>>>>> at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>>>>>> at java.base/java.lang.reflect.Method.invoke(Method.java:564)
>>>>>>>>>>> at SjavacBase.compile(SjavacBase.java:46)
>>>>>>>>>>> at ClasspathDependencies.main(ClasspathDependencies.java:88)
>>>>>>>>>>> ... 11 more
>>>>>>>>>>> Caused by: java.lang.AssertionError
>>>>>>>>>>> at jdk.compiler/com.sun.tools.javac.util.Assert.error(Assert.java:155)
>>>>>>>>>>> at jdk.compiler/com.sun.tools.javac.util.Assert.checkNonNull(Assert.java:62)
>>>>>>>>>>> at jdk.compiler/com.sun.tools.javac.code.ClassFinder.loadClass(ClassFinder.java:422)
>>>>>>>>>>> at jdk.compiler/com.sun.tools.sjavac.PubApiExtractor.getPubApi(PubApiExtractor.java:86)
>>>>>>>>>>> at jdk.compiler/com.sun.tools.sjavac.JavacState.taintPackagesDependingOnChangedClasspathPackages(JavacState.java:528)
>>>>>>>>>>> at jdk.compiler/com.sun.tools.sjavac.comp.SjavacImpl.compile(SjavacImpl.java:227)
>>>>>>>>>>> at jdk.compiler/com.sun.tools.sjavac.client.ClientMain.run(ClientMain.java:78)
>>>>>>>>>>> at jdk.compiler/com.sun.tools.sjavac.client.ClientMain.run(ClientMain.java:49)
>>>>>>>>>>> at jdk.compiler/com.sun.tools.sjavac.Main.go(Main.java:56)
>>>>>>>>>>> ... 17 more
>>>>>>>>>>> JavaTest Message: Test threw exception: java.lang.reflect.InvocationTargetException
>>>>>>>>>>> JavaTest Message: shutting down test
>>>>>>>>>>> TEST RESULT: Failed. Execution failed: `main' threw exception: java.lang.reflect.InvocationTargetException
>>>>>>>>>>> --------------------------------------------------
>>>>>>>>>>> TEST: tools/sjavac/IgnoreSymbolFile.java
>>>>>>>>>>> TEST JDK: /Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/images/jdk
>>>>>>>>>>> ACTION: build -- Passed. Build successful
>>>>>>>>>>> REASON: User specified action: run build Wrapper
>>>>>>>>>>> TIME: 0.042 seconds
>>>>>>>>>>> messages:
>>>>>>>>>>> command: build Wrapper
>>>>>>>>>>> reason: User specified action: run build Wrapper
>>>>>>>>>>> Test directory:
>>>>>>>>>>> compile: Wrapper
>>>>>>>>>>> elapsed time (seconds): 0.042
>>>>>>>>>>> ACTION: compile -- Passed. Compilation successful
>>>>>>>>>>> REASON: .class file out of date or does not exist
>>>>>>>>>>> TIME: 0.042 seconds
>>>>>>>>>>> messages:
>>>>>>>>>>> command: compile /Volumes/A/JDK/jdk10/test/langtools/tools/sjavac/Wrapper.java
>>>>>>>>>>> reason: .class file out of date or does not exist
>>>>>>>>>>> Additional options from @modules: --add-modules jdk.compiler --add-exports jdk.compiler/com.sun.tools.sjavac=ALL-UNNAMED
>>>>>>>>>>> Mode: agentvm
>>>>>>>>>>> Agent id: 13
>>>>>>>>>>> elapsed time (seconds): 0.042
>>>>>>>>>>> configuration:
>>>>>>>>>>> Boot Layer (javac runtime environment)
>>>>>>>>>>> class path: /Users/alan/javalib/share/jtreg/lib/javatest.jar
>>>>>>>>>>> /Users/alan/javalib/share/jtreg/lib/jtreg.jar
>>>>>>>>>>> patch: java.base /Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_langtools_tier1/patches/java.base
>>>>>>>>>>> javac compilation environment
>>>>>>>>>>> add modules: jdk.compiler
>>>>>>>>>>> add exports: jdk.compiler/com.sun.tools.sjavac ALL-UNNAMED
>>>>>>>>>>> source path: /Volumes/A/JDK/jdk10/test/langtools/tools/sjavac
>>>>>>>>>>> class path: /Volumes/A/JDK/jdk10/test/langtools/tools/sjavac
>>>>>>>>>>> /Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_langtools_tier1/classes/1/tools/sjavac/IgnoreSymbolFile.d
>>>>>>>>>>> rerun:
>>>>>>>>>>> cd /Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_langtools_tier1/scratch/6 && \
>>>>>>>>>>> HOME=/Users/alan \
>>>>>>>>>>> JDK8_HOME=/Library/Java/JavaVirtualMachines/1.9.0.jdk/Contents/Home \
>>>>>>>>>>> LANG=en_US.UTF-8 \
>>>>>>>>>>> LC_ALL=en_US.UTF-8 \
>>>>>>>>>>> PATH=/bin:/usr/bin \
>>>>>>>>>>> /Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/images/jdk/bin/javac \
>>>>>>>>>>> -J-Xmx512m \
>>>>>>>>>>> -J-XX:MaxRAMPercentage=3 \
>>>>>>>>>>> -J-ea \
>>>>>>>>>>> -J-esa \
>>>>>>>>>>> -J-Dtest.class.path.prefix=/Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_langtools_tier1/classes/1/tools/sjavac/IgnoreSymbolFile.d:/Volumes/A/JDK/jdk10/test/langtools/tools/sjavac \
>>>>>>>>>>> -J-Dtest.src=/Volumes/A/JDK/jdk10/test/langtools/tools/sjavac \
>>>>>>>>>>> -J-Dtest.src.path=/Volumes/A/JDK/jdk10/test/langtools/tools/sjavac \
>>>>>>>>>>> -J-Dtest.classes=/Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_langtools_tier1/classes/1/tools/sjavac/IgnoreSymbolFile.d \
>>>>>>>>>>> -J-Dtest.class.path=/Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_langtools_tier1/classes/1/tools/sjavac/IgnoreSymbolFile.d \
>>>>>>>>>>> -J-Dtest.vm.opts='-Xmx512m -XX:MaxRAMPercentage=3 -ea -esa' \
>>>>>>>>>>> -J-Dtest.tool.vm.opts='-J-Xmx512m -J-XX:MaxRAMPercentage=3 -J-ea -J-esa' \
>>>>>>>>>>> -J-Dtest.compiler.opts= \
>>>>>>>>>>> -J-Dtest.java.opts= \
>>>>>>>>>>> -J-Dtest.jdk=/Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/images/jdk \
>>>>>>>>>>> -J-Dcompile.jdk=/Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/images/jdk \
>>>>>>>>>>> -J-Dtest.timeout.factor=4.0 \
>>>>>>>>>>> -J-Dtest.modules=jdk.compiler/com.sun.tools.sjavac \
>>>>>>>>>>> --add-modules jdk.compiler \
>>>>>>>>>>> --add-exports jdk.compiler/com.sun.tools.sjavac=ALL-UNNAMED \
>>>>>>>>>>> -d /Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_langtools_tier1/classes/1/tools/sjavac/IgnoreSymbolFile.d \
>>>>>>>>>>> -sourcepath /Volumes/A/JDK/jdk10/test/langtools/tools/sjavac \
>>>>>>>>>>> -classpath /Volumes/A/JDK/jdk10/test/langtools/tools/sjavac:/Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_langtools_tier1/classes/1/tools/sjavac/IgnoreSymbolFile.d /Volumes/A/JDK/jdk10/test/langtools/tools/sjavac/Wrapper.java
>>>>>>>>>>> ACTION: build -- Passed. All files up to date
>>>>>>>>>>> REASON: Named class compiled on demand
>>>>>>>>>>> TIME: 0.0 seconds
>>>>>>>>>>> messages:
>>>>>>>>>>> command: build Wrapper
>>>>>>>>>>> reason: Named class compiled on demand
>>>>>>>>>>> elapsed time (seconds): 0.0
>>>>>>>>>>> ACTION: main -- Failed. Execution failed: `main' threw exception: java.lang.reflect.InvocationTargetException
>>>>>>>>>>> REASON: User specified action: run main Wrapper IgnoreSymbolFile
>>>>>>>>>>> TIME: 0.071 seconds
>>>>>>>>>>> messages:
>>>>>>>>>>> command: main Wrapper IgnoreSymbolFile
>>>>>>>>>>> reason: User specified action: run main Wrapper IgnoreSymbolFile
>>>>>>>>>>> Mode: agentvm
>>>>>>>>>>> Agent id: 13
>>>>>>>>>>> Additional exports to unnamed modules from @modules: jdk.compiler/com.sun.tools.sjavac
>>>>>>>>>>> elapsed time (seconds): 0.071
>>>>>>>>>>> configuration:
>>>>>>>>>>> Boot Layer
>>>>>>>>>>> class path: /Users/alan/javalib/share/jtreg/lib/javatest.jar
>>>>>>>>>>> /Users/alan/javalib/share/jtreg/lib/jtreg.jar
>>>>>>>>>>> patch: java.base /Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_langtools_tier1/patches/java.base
>>>>>>>>>>> Test Layer
>>>>>>>>>>> add exports: jdk.compiler/com.sun.tools.sjavac ALL-UNNAMED
>>>>>>>>>>> class path: /Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_langtools_tier1/classes/1/tools/sjavac/IgnoreSymbolFile.d
>>>>>>>>>>> /Volumes/A/JDK/jdk10/test/langtools/tools/sjavac
>>>>>>>>>>> rerun:
>>>>>>>>>>> cd /Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_langtools_tier1/scratch/6 && \
>>>>>>>>>>> HOME=/Users/alan \
>>>>>>>>>>> JDK8_HOME=/Library/Java/JavaVirtualMachines/1.9.0.jdk/Contents/Home \
>>>>>>>>>>> LANG=en_US.UTF-8 \
>>>>>>>>>>> LC_ALL=en_US.UTF-8 \
>>>>>>>>>>> PATH=/bin:/usr/bin \
>>>>>>>>>>> /Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/images/jdk/bin/java \
>>>>>>>>>>> -Dtest.class.path.prefix=/Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_langtools_tier1/classes/1/tools/sjavac/IgnoreSymbolFile.d:/Volumes/A/JDK/jdk10/test/langtools/tools/sjavac \
>>>>>>>>>>> -Dtest.src=/Volumes/A/JDK/jdk10/test/langtools/tools/sjavac \
>>>>>>>>>>> -Dtest.src.path=/Volumes/A/JDK/jdk10/test/langtools/tools/sjavac \
>>>>>>>>>>> -Dtest.classes=/Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_langtools_tier1/classes/1/tools/sjavac/IgnoreSymbolFile.d \
>>>>>>>>>>> -Dtest.class.path=/Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_langtools_tier1/classes/1/tools/sjavac/IgnoreSymbolFile.d \
>>>>>>>>>>> -Dtest.vm.opts='-Xmx512m -XX:MaxRAMPercentage=3 -ea -esa' \
>>>>>>>>>>> -Dtest.tool.vm.opts='-J-Xmx512m -J-XX:MaxRAMPercentage=3 -J-ea -J-esa' \
>>>>>>>>>>> -Dtest.compiler.opts= \
>>>>>>>>>>> -Dtest.java.opts= \
>>>>>>>>>>> -Dtest.jdk=/Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/images/jdk \
>>>>>>>>>>> -Dcompile.jdk=/Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/images/jdk \
>>>>>>>>>>> -Dtest.timeout.factor=4.0 \
>>>>>>>>>>> -Dtest.modules=jdk.compiler/com.sun.tools.sjavac \
>>>>>>>>>>> -classpath /Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_langtools_tier1/classes/1/tools/sjavac/IgnoreSymbolFile.d:/Volumes/A/JDK/jdk10/test/langtools/tools/sjavac:/Users/alan/javalib/share/jtreg/lib/javatest.jar:/Users/alan/javalib/share/jtreg/lib/jtreg.jar \
>>>>>>>>>>> Wrapper IgnoreSymbolFile
>>>>>>>>>>> STDOUT:
>>>>>>>>>>> javac: [-d, /Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_langtools_tier1/classes/1/tools/sjavac/IgnoreSymbolFile.d, -sourcepath, /Volumes/A/JDK/jdk10/test/langtools/tools/sjavac, -classpath, /Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_langtools_tier1/classes/1/tools/sjavac/IgnoreSymbolFile.d, --add-exports=jdk.compiler/com.sun.tools.sjavac=ALL-UNNAMED, /Volumes/A/JDK/jdk10/test/langtools/tools/sjavac/IgnoreSymbolFile.java]
>>>>>>>>>>> STDERR:
>>>>>>>>>>> Recompiling test class...
>>>>>>>>>>> compile: [-d, classes, --state-dir=classes, -Werror, src]
>>>>>>>>>>> /Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_langtools_tier1/scratch/6/src/p/X.java:2: error: package sun.reflect.annotation is not visible
>>>>>>>>>>> import sun.reflect.annotation.*;
>>>>>>>>>>> ^
>>>>>>>>>>> (package sun.reflect.annotation is declared in module java.base, which does not export it to the unnamed module)
>>>>>>>>>>> 1 error
>>>>>>>>>>> rc=1
>>>>>>>>>>> compile: [-d, classes, --state-dir=classes, -Werror, -XDignore.symbol.file=true, src]
>>>>>>>>>>> /Volumes/A/JDK/jdk10/build/macosx-x86_64-normal-server-release/test-support/jtreg_Volumes_A_JDK_jdk10_test_langtools_tier1/scratch/6/src/p/X.java:2: error: package sun.reflect.annotation is not visible
>>>>>>>>>>> import sun.reflect.annotation.*;
>>>>>>>>>>> ^
>>>>>>>>>>> (package sun.reflect.annotation is declared in module java.base, which does not export it to the unnamed module)
>>>>>>>>>>> 1 error
>>>>>>>>>>> rc=1
>>>>>>>>>>> Error: compilation failed unexpectedly: rc=1
>>>>>>>>>>> java.lang.reflect.InvocationTargetException
>>>>>>>>>>> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>>>>> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>>>>>>>> at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>>>>>> at java.base/java.lang.reflect.Method.invoke(Method.java:564)
>>>>>>>>>>> at Wrapper.main(Wrapper.java:72)
>>>>>>>>>>> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>>>>> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>>>>>>>>> at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>>>>>>>> at java.base/java.lang.reflect.Method.invoke(Method.java:564)
>>>>>>>>>>> at com.sun.javatest.regtest.agent.MainActionHelper$SameVMRunnable.run(MainActionHelper.java:229)
>>>>>>>>>>> at java.base/java.lang.Thread.run(Thread.java:844)
>>>>>>>>>>> Caused by: java.lang.Exception: 1 errors occurred
>>>>>>>>>>> at IgnoreSymbolFile.run(IgnoreSymbolFile.java:73)
>>>>>>>>>>> at IgnoreSymbolFile.main(IgnoreSymbolFile.java:43)
>>>>>>>>>>> ... 11 more
>>>>>>>>>>> JavaTest Message: Test threw exception: java.lang.reflect.InvocationTargetException
>>>>>>>>>>> JavaTest Message: shutting down test
>>>>>>>>>>> TEST RESULT: Failed. Execution failed: `main' threw exception: java.lang.reflect.InvocationTargetException
>>>>>>>>>>> --------------------------------------------------
>>>>>>>>>>>> On Jan 5, 2018, at 2:04 PM, Alan Snyder <javalists at cbfiddle.com> wrote:
>>>>>>>>>>>> 
>>>>>>>>>>>> I am trying jtreg-4.2.0-tip now.
>>>>>>>>>>>> 
>>>>>>>>>>>> Building jtreg using build-all.sh made some progress until:
>>>>>>>>>>>> 
>>>>>>>>>>>> 2018-01-05 14:02:03 (5.89 MB/s) - '/Volumes/A/JDK/jtreg/build/deps/ant/ant-1.7.0.jar' saved [1289806/1289806]
>>>>>>>>>>>> 
>>>>>>>>>>>> /Volumes/A/JDK/jtreg/build/deps/ant/ant-1.7.0.jar: OK
>>>>>>>>>>>> make: *** No rule to make target `391:a13ec77e7adc'.  Stop.
>>>>>>>>>>>> 
>>>>>>>>>>>> Also, the README must be out of date, because it does not mention build-all.sh.
>>>>>>>>>>>> 
>>>>>>>>>>>> Alan
>>>>>>>>>>>> 
>>>>>>>>>>>> 
>>>>>>>>>>>>> On Jan 5, 2018, at 1:45 PM, Jonathan Gibbons <jonathan.gibbons at oracle.com> wrote:
>>>>>>>>>>>>> 
>>>>>>>>>>>>> 1. The build labelled jtreg-4.2.0-tip.tar.gz should work for you.
>>>>>>>>>>>>>   https://ci.adoptopenjdk.net/view/Dependencies/job/jtreg/ <https://ci.adoptopenjdk.net/view/Dependencies/job/jtreg/>
>>>>>>>>>>>>> 
>>>>>>>>>>>>> 2. The build instructions are here:
>>>>>>>>>>>>>   http://openjdk.java.net/jtreg/build.html <http://openjdk.java.net/jtreg/build.html>
>>>>>>>>>>>>>   See the section on using the "build-all.sh" script.
>>>>>>>>>>>>> 
>>>>>>>>>>>>> -- Jon
>>>>>>>>>>>>> 
>>>>>>>>>>>>>> On 01/05/2018 01:35 PM, Alan Snyder wrote:
>>>>>>>>>>>>>> Maybe not as easy as you expect:
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> ant -f make/build.xml
>>>>>>>>>>>>>> Buildfile: /Volumes/A/JDK/jtreg/make/build.xml
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> -init:
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> import-javahelp:
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> BUILD FAILED
>>>>>>>>>>>>>> /Volumes/A/JDK/jtreg/make/build.xml:246: Warning: Could not find file /opt/javahelp/2.0/javahelp/lib/jh.jar to copy.
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> make -C make
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> ../src/share/classes/com/sun/javatest/regtest/agent/TestNGRunner.java:33: error: package org.testng does not exist
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> ...
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> On Jan 5, 2018, at 1:02 PM, Jonathan Gibbons <jonathan.gibbons at oracle.com <mailto:jonathan.gibbons at oracle.com>> wrote:
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> Alan,
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> I confirm there are problems with the jtreg builds from the Adopt OpenJDK group. I'll investigate what we can do to fix this.
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>> -- Jon
>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> On 01/05/2018 12:36 PM, Jonathan Gibbons wrote:
>>>>>>>>>>>>>>>> That sounds like a problem using an older build of jtreg, from the Adopt OpenJDK group. The tell-tale evidence is the Class-Path entry in the jtreg.jar MANIFEST.MF file:  does that entry include asmtools.jar?
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> There have been build changes for jtreg recently, that should have addressed this problem. If nothing else, it is now much easier to build jtreg yourself. The only external components you need are Ant and a recent JDK, such as JDK 8. Everything else will be downloaded, and built if necessary.
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> -- Jon
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> On 1/5/18 12:21 PM, Alan Snyder wrote:
>>>>>>>>>>>>>>>>> I am trying to build jdk10 on macOS 10.12.6. I got the basic build to work, but some tests fail.
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> Most of the test failures complain about not finding jasm or jcoder. This is odd because I downloaded jtreg-4.2-b11, which includes these classes, and the classpath appears to be correct in the log.
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> I got an error from StringPlatformChars, which could find native code. Could be the same jasm problem but not reported as such.
>>>>>>>>>>>>>>>>> 
>>>>>>>>>>>>>>>>> I got an error from NewUnsafeString, did not use provided string.
>>>>>>>>>>>>>>>>> 
> 



More information about the build-dev mailing list