2007-12-01 00:00:00 +00:00
|
|
|
/*
|
2014-06-05 17:57:10 +00:00
|
|
|
* @test /nodynamiccopyright/
|
|
|
|
* @bug 4720359
|
2007-12-01 00:00:00 +00:00
|
|
|
* @summary javac fails to check cross-package hiding
|
2014-06-05 17:57:10 +00:00
|
|
|
* @author gafter
|
2007-12-01 00:00:00 +00:00
|
|
|
*
|
2014-06-05 17:57:10 +00:00
|
|
|
* @compile/fail/ref=T4720359a.out -XDrawDiagnostics T4720359a.java T4720359b.java
|
2007-12-01 00:00:00 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
package p1;
|
|
|
|
public class T4720359a {
|
|
|
|
static void m() {}
|
|
|
|
}
|
|
|
|
class T4720359c extends p2.T4720359b {
|
|
|
|
// conflicting return type, even though a.m() not inherited
|
|
|
|
public static int m() { return 1; }
|
|
|
|
}
|