You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@royale.apache.org by GitBox <gi...@apache.org> on 2019/09/24 07:04:52 UTC

[GitHub] [royale-compiler] Harbs opened a new issue #96: No error on wrong MXML value type

Harbs opened a new issue #96: No error on wrong MXML value type
URL: https://github.com/apache/royale-compiler/issues/96
 
 
   Specifying a simple value for MXML which requires a complex value should cause a compile time error. One case which was just reported (https://stackoverflow.com/questions/58068839/how-to-use-graphic-svg-elements-with-apache-royale) is where an int was specified instead of an IFill for a Rect.
   
   That causes the compiled MXML to have an empty array which cannot be resolved to a class at runtime. The runtime error is very opaque to users. A much better user experience would be an error "Expected IFill, but got int instead" with a pointer to the correct location in the MXML.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services