Ticket Created
over 3 years ago

CIQQA-1286

Need to start providing more information. Bug Reports FAQ

loadResource doesn't check Rez.Id always

for string cheks in cumulus time for json error in runtime.

  • I couldn't  reproduce but I've found. Problem is for all resources system only check  if symbol exist, example:

    <font id="Fi" filename="Fi.fnt" antialias="true"/>

    <jsonData id="J1">

    <string id="S1">test</string>

    x = loadResource(Rez.Fonts.J1); //no compile error but of course run time error, compiler should check if J1 is in Rez.Fonts.

    x = loadResource(Rez.Fonts.onLayout); //no compile error but of course run time error, there is view.onLayout(), so there is symbol - compiler should check if onLayout is in Rez.Fonts.

    x = loadResource(Rez.Fonts.NoRes); //compile error because no such symbol at all

    etc.

  • Would you be able to provide more information and an example?

  • sorry - autocorrection Slight smile

    for string checks in compile time for json not but error in runtime if no jsonData entry.