Number and valueOf

Ashley Aitken <[email protected]> Tue, 31 Aug 2004 01:30:00 +0800
Newsgroups gmane.comp.web.webobjects.eof
Message-ID <[email protected]>
Howdy All,

I keep getting these exceptions:

>  java.lang.NoSuchMethodException: Class java.lang.Number does not 
> implement method valueOf
>  Reason:  Class java.lang.Number does not implement method valueOf

Which seems to relate to the fact that the attributes are specified as 
Number (although they have a value type of i for Integer).

All eogenerated get methods return Number rather than Integer for these 
attributes.  And, of course, Number doesn't implement valueOf.

Similar, if I am using EOUtitlities.object[s]MatchingKeyAndValue(ec, 
"Entity", "Key", new Integer(5)) EO seems to think the key is a Number. 
  And, again, Number doesn't implement valueOf.

Any suggestions?

Cheers,
Ashley.

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