Tapestry
  1. Tapestry
  2. TAPESTRY-2478

Non-private fields in Tapestry component classes should fail early, instead get confusing javassist.bytecode.DuplicateMemberException

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 5.0.13
    • Fix Version/s: 5.0.14
    • Component/s: tapestry-core
    • Labels:
      None

      Description

      This feels like a regression, some step (the proper validation that fields are private) is being missed.

      Somehow, we are making it to finish() even though some fields are not private:

      Caused by: java.lang.RuntimeException: javassist.bytecode.DuplicateMemberException: duplicate method: <init> in com.formos.blog.pages.Login
      at org.apache.tapestry5.internal.services.InternalClassTransformationImpl.addConstructor(InternalClassTransformationImpl.java:1357)
      at org.apache.tapestry5.internal.services.InternalClassTransformationImpl.finish(InternalClassTransformationImpl.java:1300)
      at org.apache.tapestry5.internal.services.ComponentClassTransformerImpl.transformComponentClass(ComponentClassTransformerImpl.java:163)

        Activity

        Howard M. Lewis Ship created issue -
        Howard M. Lewis Ship made changes -
        Field Original Value New Value
        Assignee Howard M. Lewis Ship [ hlship ]
        Howard M. Lewis Ship made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Howard M. Lewis Ship made changes -
        Fix Version/s 5.0.14 [ 12313214 ]
        Status In Progress [ 3 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]
        Mark Thomas made changes -
        Workflow jira [ 12433972 ] Default workflow, editable Closed status [ 12568724 ]
        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12568724 ] jira [ 12591750 ]

          People

          • Assignee:
            Howard M. Lewis Ship
            Reporter:
            Howard M. Lewis Ship
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development