2007-12-01 00:00:00 +00:00
|
|
|
/*
|
2014-07-02 21:27:10 +00:00
|
|
|
* @test /nodynamiccopyright/
|
2007-12-01 00:00:00 +00:00
|
|
|
* @bug 4974939
|
|
|
|
* @summary Boxing/unboxing negative unit and regression tests
|
|
|
|
* @author gafter
|
2014-07-02 21:27:10 +00:00
|
|
|
* @compile/fail/ref=Boxing2.out -XDrawDiagnostics Boxing2.java
|
2007-12-01 00:00:00 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
public class Boxing2 {
|
|
|
|
|
|
|
|
void f() {
|
|
|
|
Long l = 12; // no compound boxing
|
|
|
|
}
|
|
|
|
}
|