Community
Participate
Working Groups
I have EPackage which has one abstract EClass (lets call it BaseEClass and BaseEPacakge) and have other EClasses which depends on abstract one and are in different EPackages. Problem is that created CDOPackageUnit for BaseEPacakge has type UNKNOWN (it has all classes inside abstract). If I load such EClass (name it EClass A) which extends BaseEClass from the server, class A has unresolved structure, because that BaseEClass was not resolved. Reason is in CDOSessionImpl.loadPackages method call packageUnit.getOriginalType().isGenerated() - it throws IllegalStateException because that state is UNKNOWN and BaseEPacakge become not loaded.
Do you know how we can better determine isGenerated() from an EPackage?
Created attachment 178036 [details] patch v1 isGenerated when type is not DYNAMIC
However additionally it makes some concerns about UNKNOWN type for me. Why is decided to put type UNKNOWN instead of NATIVE? in this case we for sure know that EPackage is not DYNAMIC (ePackage.getClass() != EPackageImpl.class), hence it is generated! Now we attempt to find out if it is LEGACY and we find out that LEGACY cannot be determined (EClass are abstract). Instead of leaving type NATIVE, which will show you that package is generated, we choose UNKNOWN type. Later this shall corrupt future work.
For instance we already know that UNKNOWN means generated
As discussed on Skype, we'll instead throw an exception rather than returning UNKNOWN. In case of this exception the user will know that he must either: - Add the META-INF/CDO.MF marker file (empty) to indicate that it's a NATIVE model - Manually register the desired type in the CDOPackageTypeRegistry (useful for standalone)
Moving all open problem reports to 4.0
Moving all open bug reports to 4.1 because the release is very near and it's hghly unlikely that there will be spare time to address 4.0 problems. Please make sure that your patches can be applied against the master branch and that your problem is not already fixed there!!!
Moving all open issues to 4.2. Open bugs can be ported to 4.1 maintenance after they've been fixed in master.
No activity or ping here for years. Please reopen this bug if you feel a need.