author | hseigel |
Wed, 02 Mar 2016 23:48:41 +0000 | |
changeset 36397 | c487ced7231c |
parent 24797 | 850ebd4d80a7 |
permissions | -rw-r--r-- |
/* * @test /nodynamiccopyright/ * @bug 4720356 * @summary compiler fails to check cross-package overriding * @author gafter * * @compile/fail/ref=T4720356a.out -XDrawDiagnostics T4720356a.java T4720356b.java */ package p1; public class T4720356a { void m() {} } class T4720356c extends p2.T4720356b { // conflicting return type, even though a.m() not inherited public int m() { return 1; } }