Re: Number and valueOf

"shaun" <[email protected]> Tue, 31 Aug 2004 14:15:06 +0930
Newsgroups gmane.comp.web.webobjects.eof
Message-ID <[email protected]>
Hi,

On Tue, 31 Aug 2004 10:37:14 +0800, "Ashley Aitken" <[email protected]>
said:
> 
> On 31/08/2004, at 10:01 AM, Ashley Aitken wrote:
> >> Change the type to Integer in the eomodel?
> 
> That did seem to help.
> 
> Is this a general thing now (since WO 5.2.3? or thereabouts)?

hmm, not sure, I havent written a WOApp for a few months now(changed
employer)
but I think that is the way I have always done it in the past.

> 
> Should we be using Integer (rather than Number+i) for all integers?
> 
> And similarly with other Number value-types, use the explicit Java 
> class?

I would think so, but YMMV.

> 
> I'm seeing the error
> 
> > Error: java.lang.NoSuchMethodException: Class java.lang.Number does 
> > not implement method valueOf
> >  Reason:  Class java.lang.Number does not implement method valueOf
> 
> in lots of places now, where I didn't see them before.

Is this due to using Number rather than Integer? 
Or is this happening more after switching to Integer?

> 
> Cheers,
> Ashley.
> 
> --
> Ashley Aitken
> Perth, Western Australia
> mrhatken at mac dot com
> 

regards
-
shaun