jdk-24/test/langtools/tools/javac/SynchronizedClass.java
2017-09-12 19:03:39 +02: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