test/tools/javac/SynchronizedClass.java

Tue, 19 Feb 2013 00:31:45 -0800

author
darcy
date
Tue, 19 Feb 2013 00:31:45 -0800
changeset 1590
011cf7e0a148
parent 611
4172cfff05f0
child 2525
2eb010b6cb22
permissions
-rw-r--r--

8008267: Add @Supported annotation to com.sun.source types
Reviewed-by: jjg

     1 /* @test  /nodynamiccopyright/
     2    @bug 4037020 4785453
     3    @summary Verify that ClassModifier "synchronized" is not allowed.
     4    @author dps
     6    @compile/fail/ref=SynchronizedClass.out -XDrawDiagnostics SynchronizedClass.java
     7 */
     9 public synchronized class SynchronizedClass { } // ERROR

mercurial