Robert Fischer | 1 Oct 2009 01:42
Favicon
Gravatar

Re: [groovy-dev] string to int/long/etc... conversion

Why does that method have to be in Groovy core?  Your arbitrary rules aren't likely to line up with 
other people's arbitrary rules, so I'd stick to keeping that in a library.

~~ Robert Fischer, Smokejumper IT Consulting.
Enfranchised Mind Blog http://EnfranchisedMind.com/blog

Check out my book, "Grails Persistence with GORM and GSQL"!
http://www.smokejumperit.com/gormbook

Jim Jagielski wrote:
> 
> On Sep 30, 2009, at 5:32 PM, Jason Smith wrote:
> 
>> -1
>>
>> "1024k" == "1024M" ???
>>
> 
> No, but (int)"1024k" == (int)"1024M"
> 
> When you move from strings to their numeric values, you have to
> think numerically. ;)
> 
>> What about "1024abcd" (which is a perfectly valid hexadecimal number)?
>>
>> I learned back in the days of Visual Basic that magical type 
>> conversions are the cause all sorts of subtle yet devastating bugs.  
>> I'd hate to see this made a part of Groovy proper.
>>
> 
(Continue reading)

Russel Winder | 1 Oct 2009 08:39
Gravatar

[groovy-dev] Apologies . . .

. . . for the rather stupid attempt to reopen GROOVY-3777 and hence the
noise in JIRA.  GROOVY-3777 is well and truly fixed as claimed.  Thanks
to Jochen for fixing it and well done sir.  Apologies for casting
aspersions.

--

-- 
Russel.
=============================================================================
Dr Russel Winder      Partner
                                            xmpp: russel@...
Concertant LLP        t: +44 20 7585 2200, +44 20 7193 9203
41 Buckmaster Road,   f: +44 8700 516 084   voip: sip:russel.winder <at> ekiga.net
London SW11 1EN, UK   m: +44 7770 465 077   skype: russel_winder
Jochen Theodorou | 1 Oct 2009 11:01
Picon
Gravatar

Re: [groovy-dev] Apologies . . .

Russel Winder schrieb:
> . . . for the rather stupid attempt to reopen GROOVY-3777 and hence the
> noise in JIRA.  GROOVY-3777 is well and truly fixed as claimed.  Thanks
> to Jochen for fixing it and well done sir.  Apologies for casting
> aspersions.

now that you mention it, I did not even read your comment... from the 
start I concentrated only on the missing line number issue, which 
deserve in my eyes a critical too, because it can be really bad seeing a 
error message, that points to the wrong location.

Besides that.... remember always the convention of putting the operator 
on the same line as the first operand ;)

bye blackdrag

--

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

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

    http://xircles.codehaus.org/manage_email

Russel Winder | 1 Oct 2009 16:50
Gravatar

Re: [groovy-dev] Apologies . . .

On Thu, 2009-10-01 at 11:01 +0200, Jochen Theodorou wrote:
[ . . . ]
> now that you mention it, I did not even read your comment... from the 
> start I concentrated only on the missing line number issue, which 
> deserve in my eyes a critical too, because it can be really bad seeing a 
> error message, that points to the wrong location.

:-)

Indeed.  I think the single most important thing about an error message
is giving the right information about where.  Almost everything else can
usually be deduced by observation!

> Besides that.... remember always the convention of putting the operator 
> on the same line as the first operand ;)

It all stems from Bob Swift's GANT-84, so I can pass the buck :-)

--

-- 
Russel.
=============================================================================
Dr Russel Winder      Partner
                                            xmpp: russel@...
Concertant LLP        t: +44 20 7585 2200, +44 20 7193 9203
41 Buckmaster Road,   f: +44 8700 516 084   voip: sip:russel.winder <at> ekiga.net
London SW11 1EN, UK   m: +44 7770 465 077   skype: russel_winder
Russel Winder | 1 Oct 2009 16:53
Gravatar

[groovy-dev] Re: Groovy 1.6.5 release

On Thu, 2009-10-01 at 09:48 -0500, Guillaume Laforge (JIRA) wrote:
[ . . . ]
> We'll be releasing Groovy 1.6.5 tomorrow, so you'll be able to use that fix soon :-)

Is there an RC out so I can compile Gant against it just to check there
are no problems?  Gant 1.8.0 is ready to release just as soon as the new
Groovy hits the Maven repositories, and I am hoping this will be the
version in the Windows installer.

--

-- 
Russel.
=============================================================================
Dr Russel Winder      Partner
                                            xmpp: russel@...
Concertant LLP        t: +44 20 7585 2200, +44 20 7193 9203
41 Buckmaster Road,   f: +44 8700 516 084   voip: sip:russel.winder <at> ekiga.net
London SW11 1EN, UK   m: +44 7770 465 077   skype: russel_winder
Guillaume Laforge | 1 Oct 2009 16:57
Gravatar

Re: [groovy-dev] Re: Groovy 1.6.5 release

On Thu, Oct 1, 2009 at 16:53, Russel Winder
<russel.winder@...> wrote:
> On Thu, 2009-10-01 at 09:48 -0500, Guillaume Laforge (JIRA) wrote:
> [ . . . ]
>> We'll be releasing Groovy 1.6.5 tomorrow, so you'll be able to use that fix soon :-)
>
> Is there an RC out so I can compile Gant against it just to check there
> are no problems?  Gant 1.8.0 is ready to release just as soon as the new
> Groovy hits the Maven repositories, and I am hoping this will be the
> version in the Windows installer.

No RC.
So you'll have to build a snapshot from the 1.6 branch.

--

-- 
Guillaume Laforge
Groovy Project Manager
Head of Groovy Development at SpringSource
http://www.springsource.com/g2one

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

    http://xircles.codehaus.org/manage_email

Russel Winder | 1 Oct 2009 17:41
Gravatar

Re: [groovy-dev] Re: Groovy 1.6.5 release

On Thu, 2009-10-01 at 16:57 +0200, Guillaume Laforge wrote:
> On Thu, Oct 1, 2009 at 16:53, Russel Winder
> <russel.winder@...> wrote:
> > On Thu, 2009-10-01 at 09:48 -0500, Guillaume Laforge (JIRA) wrote:
> > [ . . . ]
> >> We'll be releasing Groovy 1.6.5 tomorrow, so you'll be able to use that fix soon :-)
> >
> > Is there an RC out so I can compile Gant against it just to check there
> > are no problems?  Gant 1.8.0 is ready to release just as soon as the new
> > Groovy hits the Maven repositories, and I am hoping this will be the
> > version in the Windows installer.
> 
> No RC.
> So you'll have to build a snapshot from the 1.6 branch.

Can I suggest that 1.6.5-SNAPSHOT is pushed to the Codehaus snapshot
repository to act as an RC -- or may be it already is?

--

-- 
Russel.
=============================================================================
Dr Russel Winder      Partner
                                            xmpp: russel@...
Concertant LLP        t: +44 20 7585 2200, +44 20 7193 9203
41 Buckmaster Road,   f: +44 8700 516 084   voip: sip:russel.winder <at> ekiga.net
London SW11 1EN, UK   m: +44 7770 465 077   skype: russel_winder
Jochen Theodorou | 1 Oct 2009 18:48
Picon
Gravatar

Re: [groovy-dev] Re: Groovy 1.6.5 release

Russel Winder schrieb:
> On Thu, 2009-10-01 at 16:57 +0200, Guillaume Laforge wrote:
>> On Thu, Oct 1, 2009 at 16:53, Russel Winder
>> <russel.winder@...> wrote:
>>> On Thu, 2009-10-01 at 09:48 -0500, Guillaume Laforge (JIRA) wrote:
>>> [ . . . ]
>>>> We'll be releasing Groovy 1.6.5 tomorrow, so you'll be able to use that fix soon :-)
>>> Is there an RC out so I can compile Gant against it just to check there
>>> are no problems?  Gant 1.8.0 is ready to release just as soon as the new
>>> Groovy hits the Maven repositories, and I am hoping this will be the
>>> version in the Windows installer.
>> No RC.
>> So you'll have to build a snapshot from the 1.6 branch.
> 
> Can I suggest that 1.6.5-SNAPSHOT is pushed to the Codehaus snapshot
> repository to act as an RC -- or may be it already is?

I am  publishing a SNAPSHOT atm. If the normal binary is good enough for 
you you can also use 
http://dist.groovy.codehaus.org/distributions/groovy-binary-1.6.5-SNAPSHOT.zip

bye blackdrag

--

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

---------------------------------------------------------------------
To unsubscribe from this list, please visit:
(Continue reading)

Jochen Theodorou | 1 Oct 2009 18:56
Picon
Gravatar

Re: [groovy-dev] Re: Groovy 1.6.5 release

Jochen Theodorou schrieb:
> Russel Winder schrieb:
>> On Thu, 2009-10-01 at 16:57 +0200, Guillaume Laforge wrote:
>>> On Thu, Oct 1, 2009 at 16:53, Russel Winder
>>> <russel.winder@...> wrote:
>>>> On Thu, 2009-10-01 at 09:48 -0500, Guillaume Laforge (JIRA) wrote:
>>>> [ . . . ]
>>>>> We'll be releasing Groovy 1.6.5 tomorrow, so you'll be able to use 
>>>>> that fix soon :-)
>>>> Is there an RC out so I can compile Gant against it just to check there
>>>> are no problems?  Gant 1.8.0 is ready to release just as soon as the 
>>>> new
>>>> Groovy hits the Maven repositories, and I am hoping this will be the
>>>> version in the Windows installer.
>>> No RC.
>>> So you'll have to build a snapshot from the 1.6 branch.
>>
>> Can I suggest that 1.6.5-SNAPSHOT is pushed to the Codehaus snapshot
>> repository to act as an RC -- or may be it already is?
> 
> I am  publishing a SNAPSHOT atm. If the normal binary is good enough for 
> you you can also use 
> http://dist.groovy.codehaus.org/distributions/groovy-binary-1.6.5-SNAPSHOT.zip 

there should be a 1.6.5-20091001.164839-1 version now

bye blackdrag

--

-- 
Jochen "blackdrag" Theodorou
(Continue reading)

Russel Winder | 1 Oct 2009 19:20
Gravatar

Re: [groovy-dev] Re: Groovy 1.6.5 release

On Thu, 2009-10-01 at 18:56 +0200, Jochen Theodorou wrote:
[ . . . ]
> there should be a 1.6.5-20091001.164839-1 version now

Excellent.  Thanks.  Worked a treat.

Now I just have to find out why I have 4 test fails I don't get with
1.6.4, 1.5.8 or any of the 1.7 series.  It may be a Gant test problem
not a Groovy problem.

I'll explore tomorrow.

> bye blackdrag
> 
--

-- 
Russel.
=============================================================================
Dr Russel Winder      Partner
                                            xmpp: russel@...
Concertant LLP        t: +44 20 7585 2200, +44 20 7193 9203
41 Buckmaster Road,   f: +44 8700 516 084   voip: sip:russel.winder <at> ekiga.net
London SW11 1EN, UK   m: +44 7770 465 077   skype: russel_winder

Gmane