jdk-24/langtools/test/tools/javac/SynchronizedClass.java
2008-07-10 11:25:23 -07:00

10 lines
295 B
Java

/* @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