jdk-24/langtools/test/tools/javac/SynchronizedClass.java
Jonathan Gibbons ccd014ed3f 6971882: Remove -XDstdout from javac test
Reviewed-by: darcy
2010-07-26 14:18:45 -07:00

10 lines
285 B
Java

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