Hi,
I am coding a plug-in in Java for Capela Studio 7.0.0. I am using PVMT plugin 70.7.0 to define new properties on my model.
I use the List getApplicablePropertyGroups(CapellaElement element) method from PropertyValueManager to get available properties groups but a ClassCastException is produced:
java.lang.ClassCastException: class com.thalesgroup.vpd.property.model.vpd.impl.VpdRootImpl cannot be cast to class com.thalesgroup.vpd.property.model.vpd.PropertyGroup (com.thalesgroup.vpd.property.model.vpd.impl.VpdRootImpl and com.thalesgroup.vpd.property.model.vpd.PropertyGroup are in unnamed module of loader org.eclipse.osgi.internal.loader.EquinoxClassLoader @35898875)
at com.thalesgroup.vpd.property.adapter.vpd.impl.VPDGroupAdapter.isApplicable(VPDGroupAdapter.java:53)
at com.thalesgroup.vpd.property.adapter.vpd.impl.VPDRootAdapter.gatherApplicablePropertyGroups(VPDRootAdapter.java:59)
at com.thalesgroup.vpd.property.adapter.capella.impl.ProjectAdapter.getApplicablePropertyGroups(ProjectAdapter.java:151)
at com.thalesgroup.vpd.property.extensions.PropertyValuesManager.getApplicablePropertyGroups(PropertyValuesManager.java:93)
The com.thalesgroup.vpd.property.adapter.vpd.impl.VPDRootAdapter.gatherApplicablePropertyGroups
method at line 59 is passing a VPDElement in the first parameter of the
‘com.thalesgroup.vpd.property.adapter.vpd.impl.VPDGroupAdapter.isApplicable’ method that perform a cast to PropertyGroup on it.
My hypothesis is that the gatherApplicablePropertyGroups method should pass the group variable that is a PropertyGroup instead of passing vpdElement.
I didn’t find a corresponding issue in the bug traker when I searched with ClassCastException keyword.
Should I fill an issue report ?
In which repository should I put it ? In capella-studio ?
Regards,
Nicolas.