[prev in list] [next in list] [prev in thread] [next in thread]
List: groovy-user
Subject: Re: [groovy-user] About SomeClassName.name
From: phkim () cluecom ! co ! kr
Date: 2005-08-23 5:30:44
Message-ID: 20050823053044.GA9266 () cluecom ! co ! kr
[Download RAW message or body]
On Mon, Aug 22, 2005 at 01:19:45PM +0900, phkim@cluecom.co.kr wrote:
> Hi everyone
>
> This issue has created also as GROOVY-1024.
>
> The following example works fine on JSR-01, but fails since JSR-02.
> Is this a feature or a bug?
>
>
> [cut here]-------------------------------------------
> Class IsClassTestMain extends GroovyTestCase {
> public static void main(String[] args) {
> println( StaticSomeClass.class instanceof java.lang.Class ) // work in main()
> println( StaticSomeClass.class.name ) // work in main()
>
> println( StaticSomeClass instanceof java.lang.Class ) // does not work in main() since JSR-02
> println( StaticSomeClass.name ) // does not work in main() since JSR-02
> }
> }
>
> class StaticSomeClass {
> }
> [cut here]----------------------------------------
>
>
> Cheers,
> Kim
Hi all
I don't know why nobody reply to this.
I have added a useful comment to http://jira.codehaus.org/browse/GROOVY-1024
The above error is originated in:
StaticSomeClass is a dynamic instance.
So the dynamic instance StaticSomeClass can not be accessed in
the static method().
Cheers,
Kim
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic