eclipse-viatra / org.eclipse.viatra

Main components of the VIATRA framework
https://eclipse.dev/viatra
Eclipse Public License 2.0
0 stars 1 forks source link

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

Open eclipse-viatra-bot opened 3 months ago

eclipse-viatra-bot commented 3 months ago

| --- | --- | | 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.