Bug #8294
SESSION attributes access statements produce uncompilable Java code
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:
Related issues
History
#1 Updated by Vladimir Tsichevski over 2 years ago
The following example which accesses 14 attributes of SESSION:
MESSAGE "BASE-ADE" SESSION:BASE-ADE "EXECUTION-LOG" SESSION:EXECUTION-LOG "FIRST-FORM" SESSION:FIRST-FORM "FRAME-SPACING" SESSION:FRAME-SPACING "INHERIT-BGCOLOR" SESSION:INHERIT-BGCOLOR "INHERIT-FGCOLOR" SESSION:INHERIT-FGCOLOR "INSTANTIATING-PROCEDURE" SESSION:INSTANTIATING-PROCEDURE "LAST-FORM" SESSION:LAST-FORM "PROXY-PASSWORD" SESSION:PROXY-PASSWORD "PROXY-USERID" SESSION:PROXY-USERID "SCHEMA-CHANGE" SESSION:SCHEMA-CHANGE "STREAM" SESSION:STREAM "WC-ADMIN-APP" SESSION:WC-ADMIN-APP VIEW-AS ALERT-BOX .
converts to:
messageBox(new Object[]
{
"BASE-ADE",
,
"EXECUTION-LOG",
,
"FIRST-FORM",
,
"FRAME-SPACING",
,
"INHERIT-BGCOLOR",
,
"INHERIT-FGCOLOR",
,
"INSTANTIATING-PROCEDURE",
,
"LAST-FORM",
,
"PROXY-PASSWORD",
,
"PROXY-USERID",
,
"SCHEMA-CHANGE",
,
"STREAM",
,
"WC-ADMIN-APP",
}, ALERT_MESSAGE, BTN_OK, (String) null);
Note all SESSION attribute access expression convert to nothing in Java.
All other SESSION attributes convert and work as expected (at first glance at least).
I think, the code should convert and cause a kind of "Unimplemented feature" in runtime.
#2 Updated by Greg Shah over 2 years ago
All of these are currently 100% unsupported in the conversion. The gap marking should show that. Converting things that are not supported in conversion will never work.
We could implement conversion support for everything in the language and then just stub it out with "Unimplemented feature" but we have not done this yet. It would take time we don't have right now.
#3 Updated by Alexandru Lungu over 1 year ago
- Related to Bug #9411: Implement SESSION:STREAM added