jdk-24/langtools/test/tools/javac/SynchronizedClass.java

10 lines
295 B
Java
Raw Normal View History

2007-12-01 00:00:00 +00:00
/* @test /nodynamiccopyright/
@bug 4037020 4785453
@summary Verify that ClassModifier "synchronized" is not allowed.
@author dps
@compile/fail/ref=SynchronizedClass.out -XDrawDiagnostics -XDstdout SynchronizedClass.java
2007-12-01 00:00:00 +00:00
*/
public synchronized class SynchronizedClass { } // ERROR