You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Eric Milles (Jira)" <ji...@apache.org> on 2023/11/01 14:50:00 UTC

[jira] [Updated] (GROOVY-11117) return first nested interface when GroovyClassLoader.parseClass parse interfaces with nested interfaces

     [ https://issues.apache.org/jira/browse/GROOVY-11117?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eric Milles updated GROOVY-11117:
---------------------------------
    Description: 
When I have a groovy file:
{code:groovy}
interface A {
    interface B { }
   interface C { }
}
{code}

When I use classLoader to parse this file, I only get the interface {{B}}
{code:groovy}
def gcl = new GroovyClassLoader()
// this just get the interface B, Something Do I missed?
def loadedClass = gcl.parseClass(new File("xxxx"))
{code}

my version:
 * jdk:18.0.1
 * groovy: 4.0.2

  was:
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


> return first nested interface when GroovyClassLoader.parseClass parse interfaces with nested interfaces
> -------------------------------------------------------------------------------------------------------
>
>                 Key: GROOVY-11117
>                 URL: https://issues.apache.org/jira/browse/GROOVY-11117
>             Project: Groovy
>          Issue Type: Bug
>            Reporter: Hai Shi
>            Priority: Major
>
> When I have a groovy file:
> {code:groovy}
> interface A {
>     interface B { }
>    interface C { }
> }
> {code}
> When I use classLoader to parse this file, I only get the interface {{B}}
> {code:groovy}
> def gcl = new GroovyClassLoader()
> // this just get the interface B, Something Do I missed?
> def loadedClass = gcl.parseClass(new File("xxxx"))
> {code}
> my version:
>  * jdk:18.0.1
>  * groovy: 4.0.2



--
This message was sent by Atlassian Jira
(v8.20.10#820010)