8007277: JDK-8002048 testcase fails to compile

Mandy Chung mandy.chung at oracle.com
Wed Feb 6 07:50:59 PST 2013


On 2/6/2013 2:47 AM, Alan Bateman wrote:
>
> diff --git a/test/sun/management/jdp/JdpTest.sh 
> b/test/sun/management/jdp/JdpTest.sh
> --- a/test/sun/management/jdp/JdpTest.sh
> +++ b/test/sun/management/jdp/JdpTest.sh
> @@ -23,7 +23,7 @@
>
>  # @test
>  # @bug 7169888
> -# @build JdpUnitTest JdpClient JdpDoSomething
> +# @compile -XDignore.symbol.file JdpUnitTest.java JdpClient.java 
> JdpDoSomething.java
>  # @run shell JdpTest.sh --jtreg --no-compile
>  # @summary No word Failed expected in the test output
>
> @@ -55,7 +55,7 @@
>      rm -f ${_testclasses}/*.class
>
>      # Compile testcase
> -    ${TESTJAVA}/bin/javac -d ${_testclasses} JdpUnitTest.java \
> +    ${COMPILEJAVA}/bin/javac -XDignore.symbol.file -d ${_testclasses} 
> JdpUnitTest.java \
>                                               JdpDoSomething.java  \
>                                               JdpClient.java

The fix itself looks good.   This question is more for the original test:
   Is @compile line needed?  Is $_testclasses same as $TESTCLASSES?

Mandy


More information about the serviceability-dev mailing list