Reviewer needed - deletion of regression tests compiler/6987555/Test6987555.java and compiler/6991596/Test6991596.java

Pavel Tisnovsky ptisnovs at redhat.com
Tue May 10 06:35:26 PDT 2011


Joe Darcy wrote:
> The test references types only present in JDK 7 so the test cannot
> compile on JDK 6.
> 
> I don't recall any conditional logic being available in the jtreg tag
> language.  The effect one would want is is a drive program
> 
> if (JDK_6)
>  pass vacuously
> else
> run JSR 292 tests
> 
> Under this approach, the jtreg run commands in the current tests would
> probably get moved into another file and the @test tags would be removed
> from those files as well.
> 

Hi Joe, Kelly and Jonathan,

here is webrew containing new versions of both regression tests. These
tests are compiled & run from shell scripts which checks if proper JVM
is used:

http://cr.openjdk.java.net/~ptisnovs/jtreg-fix-hotspot-tests-6987555-6991596/

Btw: I think these tests itself should be fixed in JDK7, because
java.dyn.* is AFAIK replaced by java.lang.invoke.*, some exception
classes were renamed and -XX:+EnableInvokeDynamic is not needed/permited
ATM. Maybe these changes will be part of next JDK7 release.

Cheers,
Pavel


More information about the jdk6-dev mailing list