Menu

#3 Improve error for missing setter with html:bidir-value

0.3.1
closed
None
2025-06-09
2024-01-14
No

If there is a getter but no setter for a property used in html:bidir-value, Flavour reports this error message:

[ERROR] Error calling proxy method org.teavm.flavour.templates.Templates.create(Lorg/teavm/metaprogramming/ReflectClass;Lorg/teavm/metaprogramming/Value;)V: java.lang.reflect.InvocationTargetException

This is not useful for diagnosing the source or resolution of the problem. A better message would indicate one or both of the following:

  • The line where the problem occurred
  • The missing method

Discussion

  • Andrew Oliver

    Andrew Oliver - 2024-03-09

    Fixed in recent commit. To be included in release 0.3.1.

     
  • Andrew Oliver

    Andrew Oliver - 2024-03-09
    • labels: --> 0.3.1
    • status: open --> pending
     
  • Andrew Oliver

    Andrew Oliver - 2024-03-09
    • labels: 0.3.1 -->
    • Milestone: 1.0 --> 0.3.1
     
  • Andrew Oliver

    Andrew Oliver - 2025-06-09
    • status: pending --> closed
     
  • Andrew Oliver

    Andrew Oliver - 2025-06-09

    Closing -- fixed in 0.3.1

     

Log in to post a comment.

MongoDB Logo MongoDB