Adam Heath wrote: > Raj Saini wrote: >> Hi, >> >> org.ofbiz.base.util.UtilObject#getObjectFromFactory class uses >> *javax.imageio.spi.ServiceRegistry *class to load DelegatorFactory >> implementation. ServiceRegistry class internally uses sun.misc.Service >> class which is internal to sun and may not be part of other JDKs. > > So? ServiceRegistry is a public class, who cares how it works internally. > >> Starting with JDK 1.6, java.util.ServiceLoader class is provided to >> replace the javax.imageio.spi.ServiceRegistry class and this class does >> not depend on sun.misc.Service class. This is minor two line code change >> and if community agree I can provide the patch. > > The api isn't exactly compatible, but yes.
Btw, I'm happy to just do this, but I'm a bit busy for the next few days. There's no immediate hurry for this either.