langtools/test/tools/javac/SynchronizedClass.java
author jeff
Wed, 22 Jun 2011 10:10:54 -0700
changeset 9916 c35ecac744a5
parent 6150 d055fa8ced62
permissions -rw-r--r--
7057046: Add embedded license to THIRD PARTY README Reviewed-by: lana

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

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

public synchronized class SynchronizedClass { } // ERROR