Ticket Created
over 3 years ago

WERETECH-11450

The whole system literately dies when I use programatically-generated menus for Menu(first version) with IDs that are not text(just numbers)

When I tried to use numbers as IDs in .xml menu files the compiler said "heck no", and refused to compile resources. I think the same should be applied to code-generated menus, because I spent a lot of time trying to debug the whole thing, or just throw an exception at runtime, so I will at least know what died. I think the first option is better.

Parents
  • The thing is, when I use strings as IDs, it also dies. I mean, literately the whole system reboots. I replaced them with symbols and it worked!

    But I still think that we need a validation at compile-time for these things, because it is stupid when an app can crash the whole system

Comment
  • The thing is, when I use strings as IDs, it also dies. I mean, literately the whole system reboots. I replaced them with symbols and it worked!

    But I still think that we need a validation at compile-time for these things, because it is stupid when an app can crash the whole system

Children
No Data