Community
Participate
Working Groups
Build 20021210 - Define project P - Define source folder 'src' - Add subfolder 'src/service' - Exclude 'service' from 'src' - Add 'src/service' as a (nested) source folder to P classpath - Define 'src/client/Sub.java' using following contents: [package client; class Sub extends Super { void usesSuperInnerWithinSub(SuperInner superInner) { superInner.publicMethod(); } private static class SubInner { void usesSuperInnerWithinSubInner(SuperInner superInner) { superInner.publicMethod(); } } }] - Define 'src/service/Super.java' using following contents: [public class Super { protected static class SuperInner { public void publicMethod() { } } }] - Build: Super is said to be missing from Sub standpoint.
Also noticed that codeassist would fail proposing Super inside Sub.java
client.Sub cannot see Super in the default package. I have no problems if the 2 files are: 'src/Sub.java' & 'src/service/Super.java' And my classpath includes: <classpathentry kind="src" path="src" excluding="service/"/> <classpathentry kind="src" path="src/service"/>
My fault, indeed the default package tricked me. Once using package, everything worked fine. Closing