Plural issue when a property is names "menu"property names ending in -u #903

Open
berseker59 opened this Issue Oct 16, 2016 · 0 comments

Projects

None yet

1 participant

@berseker59
berseker59 commented Oct 16, 2016 edited

Brief Description

Umple doesn't properly pluralizes property names ending in -u.

Minimum Steps to Reproduce

This is a minimum test case to validate the problem.

  1. Go to umple online
  2. Put this umple code
class Test
{
  1 -> * Menu;
}

class Menu { }
  1. Generate the java code

Expected Result

[...]
public Menu getMenu(int index)
  {
    Menu aMenus = menus.get(index);
    return aMenus;
  }

  public List<menu> getMenus()
  {
    List<menu> newMenus = Collections.unmodifiableList(menus);
    return newMenus;
  }
[...]

Actual Result

Note that the getMenus(int index) is pluralized, but it shouldn't.

[...]
public Menu getMenus(int index)
  {
    Menu aMenus = menus.get(index);
    return aMenus;
  }

  public List<menu> getMenus()
  {
    List<menu> newMenus = Collections.unmodifiableList(menus);
    return newMenus;
  }
[...]

Labelling and Assigning

bug

@berseker59 berseker59 changed the title from Plural issue when a property is names "menu" to Plural issue when a property is names "menu"property names ending in -u Oct 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment