Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VQL generator does not work with EDataTypes referring nested classes #135

Open
eclipse-viatra-bot opened this issue Mar 12, 2024 · 0 comments
Assignees
Labels
bugzilla Issues migrated from Eclipse bugzilla. Query Issues related to the query component of VIATRA, including runtime or pattern language issues.
Milestone

Comments

@eclipse-viatra-bot
Copy link

| --- | --- |
| Bugzilla Link | 578432 |
| Status | NEW |
| Importance | P3 normal |
| Reported | Jan 28, 2022 09:19 EDT |
| Modified | Jan 28, 2022 09:30 EDT |
| Version | 2.6.0 |
| Reporter | Zoltan Ujhelyi |

Description

The code generator does not support nested classes, e.g. consider the following pattern header:

pattern x(y : java org.eclipse.emf.ecore.util.FeatureMap.Entry) { ... }

The generator emits the following type declaration:

new JavaTransitiveInstancesKey(org.eclipse.emf.ecore.util.FeatureMap$Entry.class)

This results in a compile error.

Gábor Bergmann suspects that the problem is in the JavaTransitiveInstances constructor calls class.getName() instead of class.getCanonicalName() - it is worth checking.

@eclipse-viatra-bot eclipse-viatra-bot added bugzilla Issues migrated from Eclipse bugzilla. legacy Query Issues related to the query component of VIATRA, including runtime or pattern language issues. labels Mar 12, 2024
@ujhelyiz ujhelyiz removed the legacy label Mar 25, 2024
@bergmanngabor bergmanngabor self-assigned this Apr 12, 2024
@ujhelyiz ujhelyiz added this to the 2.9.0 milestone Apr 12, 2024
@ujhelyiz ujhelyiz changed the title VQL generator does not work with EDataTypes referriing nested classes VQL generator does not work with EDataTypes referring nested classes Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugzilla Issues migrated from Eclipse bugzilla. Query Issues related to the query component of VIATRA, including runtime or pattern language issues.
Projects
None yet
Development

No branches or pull requests

3 participants