[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

Status: Closed
Project: OpenEngSB
Component/s: framework
Affects Version/s: None
Fix Version/s: openengsb-3.0.0.M1

Type: Bug Priority: Major
Reporter: Felix Mayerhuber Assignee: Felix Mayerhuber
Resolution: Fixed Votes: 0
Labels: archived

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.

Generated at Fri Jan 24 02:32:23 CET 2020 using JIRA 6.3.13#6344-sha1:62d2b41c1ddfd5b5a56568898407231b0d9c17cb.