test/tools/javac/SynchronizedClass.java

Mon, 01 Jun 2015 15:19:54 -0700

author
darcy
date
Mon, 01 Jun 2015 15:19:54 -0700
changeset 3834
45746e46893b
parent 611
4172cfff05f0
child 2525
2eb010b6cb22
permissions
-rw-r--r--

8075546: Add tiered testing definitions to the langtools repo
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