I guess the @build instruction here adds some degree of uncertainty:
jtreg may not be able to determine which class to run.

-yan

On 05/06/2015 04:45 PM, Alexey Ivanov wrote:
Hello,

I faced this problem too, and only with JDK 9. If there's no @run tag in
the java file, the main method of the test is not run. However in my
case, the test reported success where I expected failure.

Regards,
Alexey

On 06.05.2015 15:29, Sergey Bylokhov wrote:
Hello,
It seems that this is a bug in the jtreg because according its
specification:

"If no |@run| tags are present in a defining file, a default is
assumed depending upon the file's filename extension"

File type     Default     Notes
.java     |@run main <name>|     <name> is the name of the file
without the ".java" suffix
.sh     |@run shell <file>|
.html     |@run applet <file>|


Jonathan do you know something about this issue?

On 06.05.15 9:18, pooja chopra wrote:
Hello,
Please review a fix for issue:
8079428 [TEST_BUG] Test javax/swing/plaf/windows/6921687/bug6921687.java
Test bug fix.
https://bugs.openjdk.java.net/browse/JDK-8079428
The webrev is : http://cr.openjdk.java.net/~pchopra/8079428/webrev.00/

Thanks,
Pooja


--
Best regards, Sergey.


Reply via email to