Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-301

When using the @Property annotation, Tapestry should throw an exception rather than overwrite an existing method

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.0.15
    • 5.0.16
    • tapestry-core
    • None

    Description

      Occasionally I get stung when I declare an @Property on my page and then at some point later I create custom accessor methods for the property - which of course are never invoked since the @Property generated code wipes over them.

      I realise this is pretty minor, and all of my own doing, but I think a small amount of pain might be saved if T5 either:

      a) warns when @Property is declared at the same time as accessor methods for the property are defined.
      b) does not generate accessor methods when user defined methods are already present.

      Attachments

        Activity

          People

            hlship Howard Lewis Ship
            joelhalbert Joel Halbert
            Votes:
            4 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: