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

return first nested interface when GroovyClassLoader.parseClass parse interfaces with nested interfaces

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 5.0.0-alpha-5
    • None
    • None

    Description

      When I have a groovy file:

      interface A {
          interface B { }
         interface C { }
      }
      

      When I use classLoader to parse this file, I only get the interface B

      def gcl = new GroovyClassLoader()
      // this just get the interface B, Something Do I missed?
      def loadedClass = gcl.parseClass(new File("xxxx"))
      

      my version:

      • jdk:18.0.1
      • groovy: 4.0.2

      Attachments

        Activity

          People

            emilles Eric Milles
            shihai1991 Hai Shi
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: