test/tools/javac/SynchronizedClass.java@dae52d74c1fc
test/tools/javac/SynchronizedClass.java
Thu, 25 Jul 2013 14:51:40 +0100
- author
- mcimadamore
- date
- Thu, 25 Jul 2013 14:51:40 +0100
- changeset 1921
- dae52d74c1fc
- parent 611
-
4172cfff05f0
- child 2525
-
2eb010b6cb22
- permissions
- -rw-r--r--
8020843: javac crashes on accessibility check with method reference with typevar receiver
Summary: method reference overload check doesn't walk through type-variable receivers
Reviewed-by: jjg
1 /* @test /nodynamiccopyright/
3 @summary Verify that ClassModifier "synchronized" is not allowed.
6 @compile/fail/ref=SynchronizedClass.out -XDrawDiagnostics SynchronizedClass.java
9 public synchronized class SynchronizedClass { } // ERROR