Community
Participate
Working Groups
We have 3 PDE bundles which reference each other: Project_A --> Project_B --> Project_C. (See attached Zip.) Project_C defines and exports an exception (c.HiddenException). This is extended in Project_B (b.PublicException); Project_B only exports PublicException, since HiddenException should not be directly used by other bundles. In Project_A we would like to reference b.PublicException, however the Eclipse compiler reports the error: "The type c.HiddenException cannot be resolved. It is indirectly referenced from required .class files" In our view this should not happen since it breaks the bundle principle of encapsulation.
Created attachment 33212 [details] 3 projects illustrating the problem Importing these projects into the workspace illustrates the compile error in Project_A.
If we change the definition of PublicException as follows, so that it doesn't extend c.HiddenException but rather just references it, then there is no compile problem with Project_A. public class PublicException extends RuntimeException { private HiddenException hiddenException = null; } (This seems to imply that the problem is with class inheritance)
Isn't this the same as the other problem that PDE and JDT have been going back and forth on?
this is a dup of bug 73957. That bug is not going back and forth. We know what the problem is. We just need to evaluate the risks/consequences of the suggested fix. *** This bug has been marked as a duplicate of 73957 ***