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