java.mini? was: Dependency leaks and embedded Java
Dalibor Topic
dalibor.topic at oracle.com
Wed Oct 31 05:05:19 PDT 2012
On 10/23/12 9:10 AM, Jaroslav Tulach wrote:
> This is my observation as well. A Throwable has now a direct dependency on
> ArrayList (as of JDK7)! That really does not make the transitive closure of
> Object smaller.
Not necessarily. While the JDK 7 implementation uses ArrayList internally,
it does not occur in the public API of Throwable. So you could write Throwable
without it in one way or another if you had to.
> However for certain environments it is clearly to big. Can't jigsaw also define
> the smallest possible profile (e.g. with classes that are directly needed
> during compilation by Javac like String, StringBuilder, Enum, Throwable)?
That would be implementation-specific by definition, as per ArrayList example above.
cheers,
dalibor topic
--
Oracle <http://www.oracle.com>
Dalibor Topic | Principal Product Manager
Phone: +494089091214 <tel:+494089091214> | Mobile: +491737185961 <tel:+491737185961>
Oracle Java Platform Group
ORACLE Deutschland B.V. & Co. KG | Kühnehöfe 5 | 22761 Hamburg
ORACLE Deutschland B.V. & Co. KG
Hauptverwaltung: Riesstr. 25, D-80992 München
Registergericht: Amtsgericht München, HRA 95603
Geschäftsführer: Jürgen Kunz
Komplementärin: ORACLE Deutschland Verwaltung B.V.
Hertogswetering 163/167, 3543 AS Utrecht, Niederlande
Handelsregister der Handelskammer Midden-Niederlande, Nr. 30143697
Geschäftsführer: Alexander van der Ven, Astrid Kepper, Val Maher
Green Oracle <http://www.oracle.com/commitment> Oracle is committed to developing practices and products that help protect the environment
More information about the jigsaw-dev
mailing list