• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: 5.2.3 Boolean Bugs?????
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 5.2.3 Boolean Bugs?????


  • Subject: Re: 5.2.3 Boolean Bugs?????
  • From: Art Isbell <email@hidden>
  • Date: Tue, 16 Mar 2004 18:18:37 -1000

On Mar 16, 2004, at 5:56 PM, Gavin Eadie wrote:

At 7:29 PM -0600 3/16/04, James Cicenia wrote:
In EOModeler I had modeled them as Number, BOOL with value type 'c'.

could this be related to

http://docs.info.apple.com/article.html?artnum=107873


Support for single byte numbers broken
   Apple Reference 3100683

ISSUE:
Specifying an attribute that mapped to a single byte external database type with a value type of 'b' and NSNumber value class was broken.


RESOLUTION:
   This specific case has been enabled.

I filed this bug back in November when I was unable to model either a FrontBase TINYINT or BYTE(1), both single byte datatypes, using a Number value class and 'b' value type. I don't think the fix should affect a boolean datatype, especially when modeled with as a 'c' Number, but who knows?


I have always been somewhat uncomfortable modeling a datatype as a Number when its concrete Java type would not be a Number subclass (e.g., Boolean or java.math.BigDecimal). This makes me wonder whether the class cast exception occurs when a Number is being cast to a Boolean. Maybe the workaround would be to do as others have been doing and model a boolean value as an 'i' Number (or maybe a 'b' Number since this is supposed to be fixed).

Aloha,
Art
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >5.2.3 Boolean Bugs????? (From: James Cicenia <email@hidden>)
 >Re: 5.2.3 Boolean Bugs????? (From: Gavin Eadie <email@hidden>)

  • Prev by Date: Re: 5.2.3 Boolean Bugs?????
  • Next by Date: Re: 5.2.3 Boolean Bugs?????
  • Previous by thread: Re: 5.2.3 Boolean Bugs?????
  • Next by thread: Missing WebObjects StartupItem on 5.2.3
  • Index(es):
    • Date
    • Thread