The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
August 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

stfu

Posted by morpheus on February 13, 2002 at 1:32 PM

>
> Just like the error message says. You made a illegal cast.

> javax.swing.text.StateInvariantError: Illegal cast to MutableAttributeSet

are you so dumb by nature or did you have to try hard?
an illegal cast gives a ClassCastException, nothing else, and besides: it would be checked rather by the VM than by the AbstractElement itself.

bye,

me.




Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us