external build make: correctly handle situations when more accessible method was removed from hierarchy

This commit is contained in:
Eugene Zhuravlev
2013-02-07 20:20:26 +01:00
parent 2b94ebfc0d
commit b318d5f500
10 changed files with 129 additions and 41 deletions
@@ -0,0 +1,12 @@
Cleaning output files:
out/production/RemoveMoreAccessibleMethod/x/Concrete.class
End of files
Compiling files:
src/x/Concrete.java
End of files
Cleaning output files:
out/production/RemoveMoreAccessibleMethod/x/y/Client.class
End of files
Compiling files:
src/x/y/Client.java
End of files
@@ -0,0 +1,6 @@
package x;
public class Abstract {
protected void method(int a) {
}
}
@@ -0,0 +1,7 @@
package x;
public class Concrete extends Abstract{
@Override
public void method(int a) {
}
}
@@ -0,0 +1,4 @@
package x;
public class Concrete extends Abstract{
}
@@ -0,0 +1,11 @@
package x.y;
import x.*;
public class Client {
private static Concrete concrete;
public static void main(String[] args) {
concrete.method(10);
}
}