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

ClassFinder.java gives compile time error due to wrong import

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Not A Problem
    • Affects Version/s: 2.2.1
    • Fix Version/s: None
    • Component/s: Build Management
    • Labels:
      None

      Description

      1) ClassFinder.java gives compile time error due to wrong import, as mentioned below.
      import org.objectweb.asm.ClassReader;
      import org.objectweb.asm.FieldVisitor;
      import org.objectweb.asm.MethodVisitor;
      import org.objectweb.asm.commons.EmptyVisitor;

      These all should be as mentioned below as per xwrok-core-2.2.1.jar:-
      import org.objectweb.asm.xwork.ClassReader;
      import org.objectweb.asm.xwork.FieldVisitor;
      import org.objectweb.asm.xwork.MethodVisitor;
      import org.objectweb.asm.xwork.commons.EmptyVisitor;

      2) Also ResourceFinder.java at line 972 gives compile time error with common-lang-2.3 version as used StringUtiils. it is working fine with common-lang-2.5.jar, but with struts 2.2.1 given common-lang version is 2.3.

      if (entry.isDirectory() && StringUtils.startsWith(name, basePath))

      { resources.add(name); }

        Attachments

          Activity

            People

            • Assignee:
              lukaszlenart Lukasz Lenart
              Reporter:
              rajeev111 Rajeev kumar
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: