Ticket Created
over 2 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.

Parents
  • 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.

Comment
  • 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.

Children
No Data