• 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: Bug??? EOClassDescription.classForAttributeKey(String)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug??? EOClassDescription.classForAttributeKey(String)


  • Subject: Re: Bug??? EOClassDescription.classForAttributeKey(String)
  • From: "Mr. Pierre Frisch" <email@hidden>
  • Date: Wed, 16 Jan 2008 14:04:36 -0800

Bug report please

Pierre
--
Pierre Frisch
email@hidden


On Jan 16, 2008, at 12:52, Florijan Stamenkovic wrote:

Hi all,

Running WO 5.3, it seems that the client side of EOF has a bug (what a surprise). The bug being:

EOClassDescription's classForAttributeKey(String key) method returns null for a plain String attribute (name). Strangely the JavaDoc for the method says nothing at all, I assume what it should do based on it's name alone.

Questions to the community:
1. Can anyone confirm this please?
2. Is this client side only?
3. Is this present in WO 5.4?
4. Anyone has another workaround besides the one below?

Workaround (which will only work on the client side):

//	your class description
EOClassDescription classDescription = ...

String className = ((EODistributedClassDescription)classDescription).
			attributeNamed(key).valueClassName();
try{
	return Class.forName(className);
}catch(ClassNotFoundException e){
	return Object.class;
}

The above code returns String.class good and easy.

If this is confirmed this will be the second bug found in the client side EOClassDescription (the first being the complete flop of the validateForDelete(EOEnterpriseObject) method).


My best, Flor _______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Bug??? EOClassDescription.classForAttributeKey(String)
      • From: Florijan Stamenkovic <email@hidden>
References: 
 >Bug??? EOClassDescription.classForAttributeKey(String) (From: Florijan Stamenkovic <email@hidden>)

  • Prev by Date: Wonder Application Template and WOComponent
  • Next by Date: Re: valueForKey(...) from within takeStoredValueForKey(...) = infinite loop
  • Previous by thread: Bug??? EOClassDescription.classForAttributeKey(String)
  • Next by thread: Re: Bug??? EOClassDescription.classForAttributeKey(String)
  • Index(es):
    • Date
    • Thread