Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-2478

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 5.0.13
    • 5.0.14
    • tapestry-core
    • 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)

      Attachments

        Activity

          People

            hlship Howard Lewis Ship
            hlship Howard Lewis Ship
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: