Bug #12
format phrase in define menu can have an extra "." inside
Start date:
11/29/2011
Due date:
11/30/2011
% Done:
0%
billable:
No
vendor_id:
GCD
case_num:
version:
History
#1 Updated by Greg Shah over 12 years ago
@45118 - recreate:
The following Progress 4GL code compiles in Progress but fails in the P2J parser: define menu my-popup-menu menu-item m-one label "One" menu-item m-two label "Two". menu-item m-three label "Three". ... on choose of menu-item m-three in menu my-popup-menu do: /* something */ end. ... assign my-browse:popup-menu in frame my-frame = menu my-popup-menu:handle. Notice the extra "." character in the format phrase for the m-two widget. The following code is not a valid standalone statement or expression, but it doesn't fail in the 4GL.
#2 Updated by Greg Shah over 12 years ago
@45119 - addl info:
The customer confirmed that the menu in fact does appear when the code is run. This means that the period character in this case is just ignored. The parser was modified accordingly, to check if the LA(2) token is a MENU-ITEM and if so to consume a DOT that is LA(1). This appears to be what Progress does. The change only affects the DEFINE MENU parsing.
#3 Updated by Redmine Admin over 12 years ago
@45120 - Status changed from WIP to Closed
#4 Updated by Greg Shah about 12 years ago
Imported from JPRM on 2012-04-12 11:23:04.863:
TASKID = 6105 PROJECTID = 124 STATUS = 9 (Closed) DESCRIPTION = format phrase in define menu can have an extra "." inside OWNER = GES ASSIGNEE = GES BILLABLE = false PRIORITY = 5 (Normal) PHASE = 52 (Problem Resolution) COMPONENT = 97 ESTEFFORT = 0.000000 ESTSTART = 2011-11-29 ESTSTOP = 2011-11-30 ACTSTOP = 2011-11-30 CASENUM = VENDORID = COMMENT = '' LASTWIP = 2011-10-11