Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-4646

remove ASM 3 from struts2

    XMLWordPrintableJSON

Details

    Description

      Pulling from the discussion on the struts2-users list:

      Struts2 maintains two different versions of ASM 5x for the Convention plugin and 3x for the rest of struts. A basic search of the codebase suggests that the only direct uses of ASM are via the ClassFinder class in Xwork and used by the Convention plugin. Based on this https://issues.apache.org/jira/browse/WW-4435 and http://www.philvarner.com/2015/02/05/using-apache-cxf-2-7-struts2-2-3-and-asm-5-with-maven/, I wonder if it might make sense to:

      1. remove the direct dependency on ASM entirely for XWork and Struts2 in general
      2. move the ClassFinder class and direct dependencies the convention plugin and make them explicitly dependent on ASM 5x.
      3. Like other apps like Spring, repackage/embed ASM into it's own package tree so it can live with other versions of ASM.


      the core issue for us is that there are overlaps between ASM 5 and ASM 3, and become explicit when launching our app with the maven-jetty-plugin. Classes with the same name in both packages though they have different groupIds and thus cause exceptions in startup either due to (a) Missing Classes like EmptyVisitor or (b) incompatible classes. It's our hope that by removing this dual dependency, we can take advantage of Java8 features and also simplify dependency management in our pom.

      thanks

      Attachments

        Activity

          People

            lukaszlenart Lukasz Lenart
            abrin adam brin
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: