• 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
ClassCastException
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ClassCastException


  • Subject: ClassCastException
  • From: David Avendasora <email@hidden>
  • Date: Wed, 7 Dec 2005 17:45:53 +0000

Hi all,

I'm getting a ClassCastException when this method is called:

    public Part part() {
        return (Part)storedValueForKey("part");
    }

It is simply resolving the to-one relationship from my Label class to my Part class, which is the abstract parent of three subclasses.

The class that this is in was generated by EOGenerator using the default templates, so it is actually in the _Label.java class. I have made no modifications to this class at all.

I'm guessing it's something simple that I'm just not seeing.

Thanks,

Dave
 _______________________________________________
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: ClassCastException
      • From: Ken Anderson <email@hidden>
  • Prev by Date: [SOLUTION] Preparing OS X fonts for iText [and most likely FOP too]
  • Next by Date: Re: ClassCastException
  • Previous by thread: [SOLUTION] Preparing OS X fonts for iText [and most likely FOP too]
  • Next by thread: Re: ClassCastException
  • Index(es):
    • Date
    • Thread