Re: Number and valueOf

Ashley Aitken <[email protected]> Tue, 31 Aug 2004 11:10:22 +0800
Newsgroups gmane.comp.web.webobjects.eof
Message-ID <[email protected]>
On 31/08/2004, at 10:37 AM, Ashley Aitken wrote:
> 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.

Yes, making the change to Integer in the EOPrototypes (god bless 
EOPrototypes, if/when they work) fixes a lot of my problems.

The downside is that the EOModel Consistency Check now (somewhat 
understandably) reports loads of issues:

> Attribute rcIntegerLarge in Entity EOPrototypes has a valueClassName 
> of Integer, but it doesn't have a valueFactoryMethodName.
> Attribute rcIntegerLarge in Entity EOPrototypes has a valueClassName 
> of Integer, but it doesn't have a adaptorValueConversionMethodName.

Just another sign, I guess, that EOModeler is *well* overdue for a 
rewrite (in Java).  Come on Apple you've had years to do this ...

Cheers,
Ashley.

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