| Summary: | Counter values remain in memory even after workflow is completed and cannot be reset | ||
|---|---|---|---|
| Product: | [Modeling] M2T | Reporter: | Daniel Luebke <eclipse> |
| Component: | Xpand | Assignee: | Project Inbox <m2t.xpand-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | sven.efftinge |
| Version: | unspecified | Flags: | sven.efftinge:
helios+
|
| Target Milestone: | RC | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
|
Description
Daniel Luebke
Haven't looked into or used the stdlib stuff. The design seems to be questionable at least. But it seams that there is a 'counterReset(Object o)' extension in the current HEAD (i.e. 1.0.0 RC1). (In reply to comment #1) > Haven't looked into or used the stdlib stuff. The design seems to be > questionable at least. Yes, that's always the thing, if there are too many statics... Unfortunately, I don't see any alternative except passing counter objects around which would polute the parameter list quite a lot. > But it seams that there is a 'counterReset(Object o)' extension in the current > HEAD (i.e. 1.0.0 RC1). Yes, but this clears one counter only. Therefore, you have to identify if the counter is used the last time or which counters have been used before. Both of them are very hard to do if the transformation reaches a certain complexity. (In reply to comment #2) > (In reply to comment #1) > > Haven't looked into or used the stdlib stuff. The design seems to be > > questionable at least. > > Yes, that's always the thing, if there are too many statics... Unfortunately, I > don't see any alternative except passing counter objects around which would > polute the parameter list quite a lot. > I would prefer passing that information explicitly before having global counter vars. Anyway, we should use Xpand's concept of global vars instead of Java statics, because their lifecycle is only bound to the execution context. I have fixed this in HEAD accordingly. Please see Bug 310361 - Same issue and more Bug resolved before Xpand 1.2 release date => Closing |