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

With multiple classloader mode on, ClassCastException when component and superclass both have @Import

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.8.3
    • 5.8.5
    • tapestry-core
    • None

    Description

      For example:

      @Import(stylesheet = "context:css/ie-only.css")
      public class SubclassWithImport extends SuperclassWithImport {
      
      }
      
      @Import(stylesheet = "context:css/ie-only.css")
      public class SubclassWithImport extends SuperclassWithImport {
      
      }
      

      Exception:
      java.lang.ClassCastException

      class org.apache.tapestry5.integration.app1.components.SubclassWithImport cannot be cast to class org.apache.tapestry5.integration.app1.components.SuperclassWithImport (org.apache.tapestry5.integration.app1.components.SubclassWithImport is in unnamed module of loader org.apache.tapestry5.internal.plastic.PlasticClassLoader @105b693d; org.apache.tapestry5.integration.app1.components.SuperclassWithImport is in unnamed module of loader org.apache.tapestry5.internal.plastic.PlasticClassLoader @37fdfb05)

      Attachments

        Issue Links

          Activity

            People

              thiagohp Thiago Henrique De Paula Figueiredo
              thiagohp Thiago Henrique De Paula Figueiredo
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: