eclipse-gemoc / eclipse-gemoc/gemoc-studio-modeldebugging

Generic trace addon does not deal with several primitive ecore types such as EShort, EByte, ...

Open
#83 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
6
Forks
14
PR merge metrics
No merged PRs in 30d

Description

For my simulation ([Logo](https://github.com/dvojtise/mde-crashcourse-logo/tree/master/part3-mmfirst-solution)) I need to code some attributes using EDouble in order to have correct precision in the simulation.

When enabling the generic trace addon, it fails with various messages (going from null pointer to 'no null' constraint is violated)

When analysing the error I looked into GenericTraceConstructor class which apparently does not deal with various Ecore primitive type such as EDouble

for example: [getGenericValue](https://github.com/eclipse/gemoc-studio-modeldebugging/blob/1c1667329c0c999f82e9e9f3e090ce591f129763/trace/generator/plugins/org.eclipse.gemoc.trace.gemoc/src/org/eclipse/gemoc/trace/gemoc/traceaddon/GenericTraceConstructor.java#L104) or [addNewObjectToState](https://github.com/eclipse/gemoc-studio-modeldebugging/blob/1c1667329c0c999f82e9e9f3e090ce591f129763/trace/generator/plugins/org.eclipse.gemoc.trace.gemoc/src/org/eclipse/gemoc/trace/gemoc/traceaddon/GenericTraceConstructor.java#L168)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.