test/langtools/tools/javac/SynchronizedClass.java
changeset 47216 71c04702a3d5
parent 6150 d055fa8ced62
equal deleted inserted replaced
47215:4ebc2e2fb97c 47216:71c04702a3d5
       
     1 /* @test  /nodynamiccopyright/
       
     2    @bug 4037020 4785453
       
     3    @summary Verify that ClassModifier "synchronized" is not allowed.
       
     4    @author dps
       
     5 
       
     6    @compile/fail/ref=SynchronizedClass.out -XDrawDiagnostics SynchronizedClass.java
       
     7 */
       
     8 
       
     9 public synchronized class SynchronizedClass { } // ERROR