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

Missing TextfierSupport from asm-util

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.5.7
    • 2.5.8, 3.0.0-beta-3
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: