Jochen Theodorou | 16 May 12:00
Picon

Re: [groovy-user] Problem using GroovyInterceptable implementation from Java

never12 schrieb:
> 
> tugwilson wrote:
>>
>> There are certainly situations in which you want to do a direct call
>> without any dynamic magic (from Java or from Groovy). In this case you
>> need some nice library mechanism to allow you to make a direct call to the
>> synthetic method which actually contains the code.
>>
>> My view is that, as far as possible, the same object should have the same
>> behaviour wet-her it's used from Java or Groovy. The original poster's
>> problem is and excellent example of why this is a good idea.
> 
> This feature would help the Java developers to adopt Groovy code into their
> existing Java project. 
> The lack of ability to use Groovy interceptors from Java code is kind of
> disappointing for me...
> Every Groovy book declares that it is so easy to integrate Groovy to Java,
> but noone mentions the "small things" about the integration, like that the
> Groovy can loose its dynamic behavior in Java.

that's because (a) it is no secret and (b) we had the guideline to let 
Groovy behave like Java when looking at Groovy from Java in the past. 
For example you don't expect 1.plus(1) in Java, when you do 1+1.

bye blackdrag

--

-- 
Jochen "blackdrag" Theodorou
The Groovy Project Tech Lead (http://groovy.codehaus.org)
http://blackdragsview.blogspot.com/
http://www.g2one.com/

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Gmane