Bug #8910
'VIEW frame IN WINDOW' converts to invalid Java
Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
Due date:
% Done:
0%
billable:
No
vendor_id:
GCD
case_num:
version_reported:
version_resolved:
History
#1 Updated by Vladimir Tsichevski 4 days ago
The VIEW outerFrame IN WINDOW wnd.
statement in the following code:
DEFINE VARIABLE wnd AS HANDLE NO-UNDO. CREATE WINDOW wnd. DEFINE VARIABLE outerFrame AS HANDLE NO-UNDO. CREATE FRAME outerFrame. VIEW wnd. VIEW outerFrame IN WINDOW wnd.
Converts to uncompilable Java:
... FrameElement[] elementList0 = new FrameElement[] { new WidgetElement(outerFrame) }; wnd.view(); ^^^^^ This cannot compile ^^^^^
Presumably the correct converted call should use the value of elementList0
.
#2 Updated by Vladimir Tsichevski 4 days ago
Probably, the correct output shall look like this?
outerFrame.unwrapWidget().setParent((GenericWidget<?>) wnd.unwrapWidget()); outerFrame.unwrapWidget().view();
#3 Updated by Vladimir Tsichevski 4 days ago
Workaround:
CREATE FRAME outerFrame ASSIGN PARENT = wnd.