Mailing Lists: Apple Mailing Lists

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

Re: Creating an SPI.



On 2006-01-02, at 16:24, Rams wrote:
sun.* classes aren't part of the specification. any given VM may or may not have them. Sun can add/remove/change them arbitrarily at will.

java.util.Service basically *is* sun.misc.Service, but made stable and public. search the bug parade for more information.

Sorry if this is a dumb question... But lacking sun.misc.Service will not preclude those VMs from making use of my library?

yes, it would. you'd get an UnsatisfiedLinkError if it was missing, or any one of a variety of errors if it wasn't binary compatible with the one you compiled against.


It will only keep them from being able to compile the SPI source itself, no? Otherwise, wouldn't javax.naming.spi be broken on any VM that does not have sun.misc.Service?

the particular implementation you've seen would be broken on such a VM, yes. so that wouldn't be what shipped with that VM.


--
Elliott Hughes, http://www.jessies.org/~enh/

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden
References: 
 >Re: Creating an SPI. (From: Rams <email@hidden>)
 >Re: Creating an SPI. (From: Elliott Hughes <email@hidden>)
 >Re: Creating an SPI. (From: Rams <email@hidden>)



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.