2014-07-02 14:27:10 -07:00

15 lines
290 B
Java

/*
* @test /nodynamiccopyright/
* @bug 4974939
* @summary Boxing/unboxing negative unit and regression tests
* @author gafter
* @compile/fail/ref=Boxing2.out -XDrawDiagnostics Boxing2.java
*/
public class Boxing2 {
void f() {
Long l = 12; // no compound boxing
}
}