langtools/test/tools/javac/SynchronizedClass.java
author bae
Sat, 23 May 2009 08:35:37 +0400
changeset 3009 de653b2cab31
parent 863 3113c955a388
child 6150 d055fa8ced62
permissions -rw-r--r--
4893408: JPEGReader throws IllegalArgException when setting the destination to BYTE_GRAY Reviewed-by: igor, prr

/* @test  /nodynamiccopyright/
   @bug 4037020 4785453
   @summary Verify that ClassModifier "synchronized" is not allowed.
   @author dps

   @compile/fail/ref=SynchronizedClass.out -XDrawDiagnostics -XDstdout SynchronizedClass.java
*/

public synchronized class SynchronizedClass { } // ERROR