import static
It’s not a good way to extends static members from super class. like this code in struts2.
public class ActionSupport {
public static String SUCCESS = "success";
public static String ERROR = "error";
}
public class StaticAction extends ActionSupport {
public static void main(String[] args) {
System.out.println(SUCCESS);
}
}
import static com.ryo.dao.ActionSupport.*;
public class StaticImport {
public static void main(String[] args) {
System.out.println(SUCCESS);
}
}