groovy-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Gromov (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (GROOVY-7452) Cannot reference inner classes of super classes by short name
Date Wed, 03 Jun 2015 11:01:49 GMT

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

Peter Gromov updated GROOVY-7452:
---------------------------------
    Description: 
e.g. paste this in Groovy web console:

{code}
​import java.nio.channels.*

abstract class Foo extends FileChannel {
  MapMode foo() { null }
}
print "hi"​​​
{code}

startup failed:
Script1.groovy: 5: unable to resolve class MapMode 
 @ line 5, column 3.
     MapMode foo() { null }
     ^

1 error


If one qualifies the name: FileChannel.MapMode, the compilation succeeds

>From https://youtrack.jetbrains.com/issue/IDEA-140769

  was:
e.g. paste this in Groovy web console:

{code}
​import java.nio.channels.*

abstract class Foo extends FileChannel {
  MapMode foo() { null }
}
print "hi"​​​
{code}

startup failed:
Script1.groovy: 5: unable to resolve class MapMode 
 @ line 5, column 3.
     MapMode foo() { null }
     ^

1 error


If one qualifies the name: FileChannel.MapMode, the compilation succeeds


> Cannot reference inner classes of super classes by short name
> -------------------------------------------------------------
>
>                 Key: GROOVY-7452
>                 URL: https://issues.apache.org/jira/browse/GROOVY-7452
>             Project: Groovy
>          Issue Type: Bug
>          Components: Compiler
>            Reporter: Peter Gromov
>
> e.g. paste this in Groovy web console:
> {code}
> ​import java.nio.channels.*
> abstract class Foo extends FileChannel {
>   MapMode foo() { null }
> }
> print "hi"​​​
> {code}
> startup failed:
> Script1.groovy: 5: unable to resolve class MapMode 
>  @ line 5, column 3.
>      MapMode foo() { null }
>      ^
> 1 error
> If one qualifies the name: FileChannel.MapMode, the compilation succeeds
> From https://youtrack.jetbrains.com/issue/IDEA-140769



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message