Project

General

Profile

Bug #4598

define shared menu statement is converted using new name to reference the shared menu

Added by Sergey Ivanovskiy about 4 years ago. Updated about 4 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
Due date:
% Done:

0%

billable:
No
vendor_id:
GCD
case_num:

Related issues

Related to User Interface - Bug #4589: menu case sensitivity and conversion Closed

History

#1 Updated by Sergey Ivanovskiy about 4 years ago

This issue can be reproduced with ./menu/shared_new.p and ./menu/shared_use.p from the old testcases/uast project.
The new shared menu from

define new shared menu mm title "Menu title".

run "shared_use.p" 

is converted into SharedNewMmMenu java class name, but its reference from shared_use.p
define shared menu mm.

message string(menu mm:title).

is converted into SharedUseMmMenu and the final converted java code is not compiled
compile:
    [javac] Compiling 17 source files to /home/sbi/projects/testcases/uast/build/classes
    [javac] /home/sbi/projects/testcases/uast/src/com/goldencode/testcases/menu/SharedUse.java:17: error: cannot find symbol
    [javac]    SharedUseMmMenu mm = MenuWidget.importStaticSharedMenu(SharedUseMmMenu.class, "mm");
    [javac]    ^
    [javac]   symbol:   class SharedUseMmMenu
    [javac]   location: class SharedUse
    [javac] /home/sbi/projects/testcases/uast/src/com/goldencode/testcases/menu/SharedUse.java:17: error: cannot find symbol
    [javac]    SharedUseMmMenu mm = MenuWidget.importStaticSharedMenu(SharedUseMmMenu.class, "mm");
    [javac]                                                           ^
    [javac]   symbol:   class SharedUseMmMenu
    [javac]   location: class SharedUse
    [javac] 2 errors

#2 Updated by Sergey Ivanovskiy about 4 years ago

  • Related to Bug #4589: menu case sensitivity and conversion added

Also available in: Atom PDF