[PATCH] Remove usage of private API
Scott Kovatch
scott.kovatch at oracle.com
Mon Jul 30 09:23:41 PDT 2012
On Jul 30, 2012, at 6:55 AM, Marco Dinacci <marco.dinacci at gmail.com> wrote:
> Hi,
>
> my app bundling the OpenJDK just got rejected on the Apple Store
> because it uses some private API. It turns out there are a few files
> in jdk/src/macosx/native/sun/awt/ that use
> CGPointApplyInverseAffineTransform and CGContextSetCTM, which are
> private functions.
Did you get a full list of the APIs that was causing the rejection?
The patch is greatly appreciated, but if there are others we can start hunting them down now and save everyone a lot of time.
> The following patch attempts to replace those API calls with public
> ones. It's my first venture into CoreGraphics, hopefully I got it
> right.
>
> I've also found a private string (CTIntegerMetrics) used in
> CoreTextSupport.m and CTextPipe.m. I don't know any fix for this as it
> seems the functionality is not exposed via any public API.
>
> Please advise whether I should open a bug or not.
Yes, you should open a bug for these, as being able to submit a Java-based app to the OS X app store is something we want to support. Be sure to include your patch, along with information as to which branch you based your changes on.
-- Scott K.
----------------------------------------
Scott Kovatch
scott.kovatch at oracle.com
Santa Clara/Pleasanton, CA
More information about the macosx-port-dev
mailing list