Bug #12141
Multiple type constructors generated in setters
Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
Due date:
% Done:
0%
billable:
No
vendor_id:
GCD
case_num:
version_reported:
version_resolved:
reviewer:
production:
No
env_name:
topics:
Conversion
Related issues
History
#1 Updated by Dănuț Filimon 14 days ago
The test case:
- test1.cls
class test1: method public void call1(): define variable o as test2 no-undo. o = new test2(). o:val1 = integer("404"). end method. end class. - test2.cls
class test2: define public property val1 as integer get. set. end class.
The converted code of test1 contains:
o.ref().setVal1(new integer(new integer("404")));
Another interesting test case is:
- Handler.cls
class Handler: method public void handle(): define variable o as OpenEdge.Web.WebResponse no-undo. o = new OpenEdge.Web.WebResponse(). o:StatusCode = integer("404"). end method. end class.
Step 1: convert the code
Step 2: check the generated code for new integer(new integer("404"))
Step 3: add 1 space in Handler.cls
Step 4: run incremental conversion
Step 5: new integer(new integer("404")) is no longer present, it is replaced by a single new integer("404")
#2 Updated by Dănuț Filimon 14 days ago
- Related to Feature #7169: drive conversion order using user-specified dependencies added
#3 Updated by Dănuț Filimon 14 days ago
- topics Conversion added