langtools/test/tools/javac/SynchronizedClass.java
changeset 863 3113c955a388
parent 10 06bc494ca11e
child 6150 d055fa8ced62
--- a/langtools/test/tools/javac/SynchronizedClass.java	Tue Jul 08 18:06:19 2008 -0700
+++ b/langtools/test/tools/javac/SynchronizedClass.java	Thu Jul 10 11:25:23 2008 -0700
@@ -3,7 +3,7 @@
    @summary Verify that ClassModifier "synchronized" is not allowed.
    @author dps
 
-   @run shell SynchronizedClass.sh
+   @compile/fail/ref=SynchronizedClass.out -XDrawDiagnostics -XDstdout SynchronizedClass.java
 */
 
 public synchronized class SynchronizedClass { } // ERROR