Bug 578955 - Importing JDT blackboxes by access or extends
Summary: Importing JDT blackboxes by access or extends
Status: NEW
Alias: None
Product: QVTo
Classification: Modeling
Component: Engine (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 10
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-24 12:42 EST by Christopher Gerking CLA
Modified: 2022-02-28 15:53 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christopher Gerking CLA 2022-02-24 12:42:58 EST
A Java blackbox resolved in the workspace through JDT cannot be imported by access or extends, like it is possible with ordinary modules.

import org.eclipse.m2m.tests.qvt.oml.BBoxLibrary;

transformation t() access BBoxLibrary;

In the above snippet, there will be a parser error on the 'BBoxLibrary' token after the access. 

The reason is rather trivial: the JDT blackbox provider fails to properly extract the simple name for the blackbox module from the (fully qualified) name of the compilation unit.
Comment 1 Eclipse Genie CLA 2022-02-24 13:01:22 EST
New Gerrit change created: https://git.eclipse.org/r/c/mmt/org.eclipse.qvto/+/191198
Comment 2 Eclipse Genie CLA 2022-02-24 13:01:34 EST
New Gerrit change created: https://git.eclipse.org/r/c/mmt/org.eclipse.qvto/+/191199