| Summary: | Type of packages with only abstract classes can not be determined | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Modeling] EMF | Reporter: | Egidijus Vaisnora <vaisegid> | ||||
| Component: | cdo.core | Assignee: | Eike Stepper <stepper> | ||||
| Status: | CLOSED WONTFIX | QA Contact: | Eike Stepper <stepper> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | stepper | ||||
| Version: | 4.2 | Flags: | stepper:
review-
|
||||
| Target Milestone: | --- | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Egidijus Vaisnora
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. |