Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-9210

Missing TextfierSupport from asm-util

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.5.7
    • Fix Version/s: 2.5.8, 3.0.0-beta-3
    • Component/s: None
    • Labels:
      None

      Description

      Groovy 2.5 and 2.6 are missing TextifierSupport class from asm-util.

      https://github.com/apache/groovy/blob/GROOVY_2_5_X/gradle/assemble.gradle

                  includesPerLibrary = [
                          'asm-util': ['org/objectweb/asm/util/Printer.class',
                                       'org/objectweb/asm/util/Textifier.class',
                                       'org/objectweb/asm/util/ASMifier.class',
                                       'org/objectweb/asm/util/Trace*']
                  ]

      Textifier.visitAttribute references TextifierSupport in the same package but the class is not included in groovy-2.5.7.jar.

      Attached screenshot to reproduce the issue in Java:

       

      package groovyjarjarasm.asm;
      
      import org.codehaus.groovy.classgen.asm.util.LoggableTextifier;
      
      /**
       * Demonstrates LoggableTextifier throws ClassNotFoundException.
       */
      public class App 
      {
          public static void main( String[] args )
          {
              LoggableTextifier loggableTextifier = new LoggableTextifier();
              loggableTextifier.visitAttribute(new Attribute("hello"));
          }
      }

        Attachments

        1. RahYXsDxMuy.png
          219 kB
          Tomo Suzuki

          Activity

            People

            • Assignee:
              daniel_sun Daniel Sun
              Reporter:
              suztomo Tomo Suzuki
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: