Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Mixing Cocoa Java and Java AWT Q&A
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mixing Cocoa Java and Java AWT Q&A



On Mar 2, 2004, at 6:53 PM, Steve Roy wrote:

Hacks? What the heck. Let's be careful how we name things! JDirect was a
bona fide technology that was competing with JNI, and which many of us
were using in the way it was intended. You can code hacks in any
language, including plain Java, so the fact that JDirect allowed us to
call C functions has nothing to do with hacks having been written.

But when it is used to access and modify AWT implementation specific stuff (such as the Preferences hack) using a two technologies (Carbon & JDirect) that aren't in the latest java, it is a hack. No other word for it. :)

Same thing could go with JNI code that starts making assumptions about how java 1.4 AWT peers are created on Mac OS X. Or code that assumes that mixing Cocoa Java and Java AWT are supported, when it isn't! :)

When these hacks get into "big shipping applications" and these hacks aren't compatible with improving java AWT on Mac OS X, I personally get very concerned. Please don't hack. Please file enhancement request bug reports (preferably with Sun so it can be used on all JDK platforms!) or code the hacks in such a way that it can fail gracefully if the code shouldn't work for some reason in the future.
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
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 © 2011 Apple Inc. All rights reserved.