Thu, 21 Feb 2013 14:43:51 -0800
8008405: Now that metafactory is in place, add javac lambda serialization tests
Summary: Tests part of original langtools serialization review.
Reviewed-by: mcimadamore
aoqi@0 | 1 | /* /nodynamiccopyright/ */ |
aoqi@0 | 2 | // combinations of methods defined in an interface |
aoqi@0 | 3 | // and overridden in subtypes |
aoqi@0 | 4 | |
aoqi@0 | 5 | // class should compile with deprecation warnings as shown |
aoqi@0 | 6 | |
aoqi@0 | 7 | abstract class B2 extends A implements I { |
aoqi@0 | 8 | @Deprecated public void iDep_aDep_bDep() { } |
aoqi@0 | 9 | public void iDep_aDep_bUnd() { } // warn x 2, because of I and A |
aoqi@0 | 10 | // public void iDep_aDep_bInh() { } |
aoqi@0 | 11 | @Deprecated public void iDep_aUnd_bDep() { } |
aoqi@0 | 12 | public void iDep_aUnd_bUnd() { } // warn |
aoqi@0 | 13 | // public void iDep_aUnd_bInh() { } // warn |
aoqi@0 | 14 | @Deprecated public void iDep_aInh_bDep() { } |
aoqi@0 | 15 | public void iDep_aInh_bUnd() { } // warn |
aoqi@0 | 16 | // public void iDep_aInh_bInh() { } |
aoqi@0 | 17 | @Deprecated public void iUnd_aDep_bDep() { } |
aoqi@0 | 18 | public void iUnd_aDep_bUnd() { } // warn |
aoqi@0 | 19 | // public void iUnd_aDep_bInh() { } |
aoqi@0 | 20 | @Deprecated public void iUnd_aUnd_bDep() { } |
aoqi@0 | 21 | public void iUnd_aUnd_bUnd() { } |
aoqi@0 | 22 | // public void iUnd_aUnd_bInh() { } |
aoqi@0 | 23 | @Deprecated public void iUnd_aInh_bDep() { } |
aoqi@0 | 24 | public void iUnd_aInh_bUnd() { } |
aoqi@0 | 25 | // public void iUnd_aInh_bInh() { } |
aoqi@0 | 26 | } |