Remove superfluous @test tags from SpliteratorTraversingAndSplittingTest

Jonathan Gibbons jonathan.gibbons at oracle.com
Thu Aug 8 00:58:02 UTC 2013


Chris,

> It might point to a bug in jtreg, or just "bad" jtreg meta-data.
>
>   >: ls one
> .                ..               HelloWorld.java
>   >: cat one/HelloWorld.java
> /*
>    * @test
>    * @bug 8765432
>    */
>
> /*
>    * @test
>    */
>
> public class HelloWorld {
>       public static void main(String[] args) {
>           System.out.println("Hello World.");
>       }
> }

This is a un-feature in jtreg.   Strictly speaking, the jtreg Tag Spec 
only allows one test description per file, and so if you follow the 
spec, the situation you describe cannot arise.

-- Jon




More information about the core-libs-dev mailing list