Project Coin: Inducing contributory heap pollution

Neal Gafter neal at gafter.com
Thu Jun 10 10:06:33 PDT 2010


Re: http://blogs.sun.com/darcy/entry/projectcoin_inducing_contributory_pollution

I thought technical documents for project Coin were supposed to be
published here?

A nit: the @Inherited annotation "has no effect if [...] used to
annotate anything other than a class", and so can't be used for the
purpose described.

Inheriting the diagnostic-suppression annotation would be a great way
to induce contributory heap pollution.  All you have to do is extend a
class with a warning-suppressed varargs method, providing an unsafe
overriding implementation, and voila!  Heap pollution without a
warning.



More information about the coin-dev mailing list