Bug #10518
Property getter call is ignored from conversion
Status:
Closed
Priority:
Normal
Assignee:
Paul Bodale
Target version:
-
Start date:
Due date:
% Done:
100%
billable:
No
vendor_id:
GCD
case_num:
version_reported:
version_resolved:
History
#1 Updated by Paul Bodale 11 months ago
- Assignee set to Paul Bodale
The test case:
CLASS task.PlayCls:
DEFINE PUBLIC PROPERTY prop AS CHARACTER INITIAL "NO EFFECT" NO-UNDO
GET. SET.
DEFINE PRIVATE PROPERTY c AS CHARACTER NO-UNDO
GET:
prop = "UPDATED".
RETURN c.
END.
PRIVATE SET.
METHOD PUBLIC CHARACTER test():
c. //This instruction is ignored
RETURN prop.
END.
END CLASS.
The test method converts to this:
@LegacySignature(type = Type.METHOD, name = "test", returns = "CHARACTER")
public character test()
{
return function(PlayCls.class, this, "test", character.class, new Block((Body) () ->
{
storeReturnValue(getProp());
}));
}
The first instruction of this method is disregarded. The method returns "NO EFFECT".
#5 Updated by Constantin Asofiei 11 months ago
- Status changed from Review to Internal Test
I'm OK with the changes. Nice find.
Please run conversion with a small project which has OO and if it works, lets merge it.
#8 Updated by Constantin Asofiei 10 months ago
- Status changed from Internal Test to Merge Pending
Please merge to trunk now.
#11 Updated by Constantin Asofiei 6 months ago
- Status changed from Test to Closed