You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In class 'org.eclipse.emfcloud.modelserver.example.util.PrintUtil.java', the default case in the switch statement needs to account for the case of multi-valued attributes. The current code assumes all attributes are single-valued and fails with a ClassCastException when it encounters a multi-valued attribute. Here's the updated method that I used to fix the problem:
Thank you for pointing out the issue in the Model Server's PrintUtil and sharing your solution.
We appreciate your effort and encourage you to open a pull request with your fix so it can be reviewed and integrated into the project.
In class 'org.eclipse.emfcloud.modelserver.example.util.PrintUtil.java', the default case in the switch statement needs to account for the case of multi-valued attributes. The current code assumes all attributes are single-valued and fails with a ClassCastException when it encounters a multi-valued attribute. Here's the updated method that I used to fix the problem:
`@Override
public StringBuilder defaultCase(final EObject object) {
beginObject(object.eClass().getName() + " {");
The text was updated successfully, but these errors were encountered: