Community
Participate
Working Groups
The problem is that a subclass can't see the superclass's protected inner class. In summary, here's the problem: public class A { public class Inner { protected class NestedException {} } } public class B { public class Inner extends A.Inner { --- in here, can't see the A.Inner.NestedException type, even though we're a subclass of A.Inner --- } } --- Java files exhibiting the problem follow. They are: util/A.java client/B.java Both compile fine with JDK 1.3.1_01, won't compile with Eclipse 2.0 build 20011206. --- util/A.java --- package util; public class A { public abstract static class Inner { protected final static class NestedException extends Exception { public static void rethrow(final Throwable throwable) throws NestedException { throw (NestedException) throwable; } } } } --- client/B.java --- package client; import java.io.Serializable; import util.A; public class B { private final static class Inner extends A.Inner { protected final void construct() throws A.Inner.NestedException { A.Inner.NestedException.rethrow(new Exception()); } } }
Created attachment 192 [details] ZIP file with Java source files exhibiting the bug
Thanks for the feedback. It was resolved in build 20011211. *** This bug has been marked as a duplicate of 3368 ***