eclipse-ocl / org.eclipse.ocl

Eclipse Public License 2.0
0 stars 0 forks source link

[uml] $uml$ cannot be loked up as a RootPackageId #1391

Closed eclipse-ocl-bot closed 1 month ago

eclipse-ocl-bot commented 1 month ago

| --- | --- | | Bugzilla Link | 448927 | | Status | RESOLVED FIXED | | Importance | P3 normal | | Reported | Oct 27, 2014 04:30 EDT | | Modified | Oct 27, 2014 12:50 EDT | | Version | 5.0.0 | | Reporter | Ed Willink |

Description

See "Luna Problem with derived properties" OCL newsgroup thread and

"To test this out, you can pull the UPR git repository :\ git://git.eclipse.org/gitroot/upr/upr.git\ Then checkout the branch "derivedAttributeTest"\ Then run project "org.eclipse.upr.depl.tests" as JUnit plug-in test. "

The problem is that the potentially many UML artefacts are merged under the $uml$ virtual package id, but no registration is able to resolve it in EcoreIdResolver.rootPackageId().

Adding

if (packageId instanceof RootPackageId) {\ roots2package.put(((RootPackageId)packageId).getName(), domainPackage);\ }

to processDirectRoots fixes the problem.

eclipse-ocl-bot commented 1 month ago

By Ed Willink on Oct 27, 2014 12:50

Pushed to maintenance/R5_0 for Luna SR2 (see also bug 448956)

commit 3b8702756c821e6f22d5dc5e7662aecf055a55ea

Pushed to master for M3.

commit c42354bf48fc1764996a79f7fcd31cc3a214d4b6