Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

cannot push event queue



Hello!

We are currently working on supporting an ability to
run IntelliJ IDEA 3.0 under Mac OS X. We have found
the problem with JDK 1.4.1 rc 2 for Mac. The following
code raises ClassCastException:

Toolkit.getDefaultToolkit().getSystemEventQueue().push(new
MyEventQueue());

The problem is that the passed event queue is
downcasted to CEventQueue, although the passed event
queue is actually derived from java.awt.EventQueue.
We haven't found in push()'s javadoc any restrictions
concerning the actual class of the passed parameter.
It seems that the current Macs implementation does
not allow to run cross-platform programs which use
event queue in such a way.


Best regards,
Vladimir Kondratyev
---------------------------------------------------
JetBrains, Inc / IntelliJ Software
http://www.intellij.com
"Develop with pleasure!"
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Be sure to read the FAQ http://developer.apple.com/java/faq/ before posting
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.