[OPENENGSB-3283] Improve the function toOpenEngSBModelEntries so that it checks if the getter it refers really exists Created: 26/Aug/12 Updated: 28/May/14 Resolved: 04/Sep/12
|Reporter:||Felix Mayerhuber||Assignee:||Felix Mayerhuber|
|Changelog:||Now there exists a check in the model weaving, which checks if getters, which would be called in the injected code, are existing before the call is added to the injected code. If there is no getter existing, a warning will be printed and the corresponding field is ignored.|
|Sprint:||Sprint 7, Sprint 8|
Until now, the algorithm just assumes that the corresponding getter is available (the getters need to be used, since direct field access doesn't work when there are super classes involved). A simple check if the getter is there before the corresponding command is added to the method body should be enough. Also there should be a logger warn message if the setter isn't there.