About JObjC...

Scott Kovatch scott.kovatch at oracle.com
Tue May 29 08:38:09 PDT 2012


On May 29, 2012, at 7:45 AM, Michael McMahon wrote:

> On 29/05/12 15:20, Scott Kovatch wrote:
>> Folks,
>> 
>> A question this morning about JObjC reminded me of something I want to propose to the list. Given that JObjC is a Mac OS X-only technology, it's not clear to me that it belongs in the full JDK. Nothing in the JDK itself uses it, and it contributes about 500k to the overall runtime. That's not a lot, compared to the 62 MB for all of rt.jar, but every little bit helps.
>> 
>> With Java 8 coming, JObjC looks like a good candidate for modularization. It has no dependencies of its own, and isn't used enough to warrant putting it into the core. That way, if you want it you can include it in your applications, and you won't have to pay the cost of including it if you don't.
>> 
>> I'm inclined to say we shouldn't be building it into 7uX's rt.jar, but given the size it may not be worth the effort.
>> 
>> Any opinions?
>> 
>> -- Scott
>> 
> Is it not building into a separate jar file? jobjc.jar (or something similar) ...
> 
> I agree though it is a good candidate for inclusion in its own module in 8.

Oh, I take it back -- yes, it is currently being built into JObjC.jar. I missed it at first because it's capitalized, and doesn't show up with the rest of the JAR files. It's about 2.4 MB. And come to think of it, I've been advising people to leave it out of their bundles and had Greg leave it out of the default JRE set in appbundler, so clearly I knew this already. :-\

Maybe I'm not feeling as well as I thought. I'm still jet-lagged from a long trip and not 100% this morning.

Modularizing JObjC needs a bug so it gets done in time for 8.

-- Scott K.




More information about the macosx-port-dev mailing list