Feedback and comments on ARM proposal

Mark Mahieu markmahieu at googlemail.com
Fri Mar 20 16:35:27 PDT 2009


2009/3/20 Reinier Zwitserloot <reinier at zwitserloot.com>
>
> Using a special package which contains only interfaces that serve as
> AutoDisposable: Okay. Can you add your own to this? Technically you
> can just put "java.lang.auto.Foo" in your own jar files, do those get
> picked up, or will java.lang.auto become a sealed package of some
> sort, or will it be limited to only interfaces in the java.lang.auto
> package in the java-core module? If any programmer can add their own,
> I think a marker interface is a better idea.


Regardless of the specific mechanism, being able to add new interfaces might
mean that java.sql could declare an AutoFreeable type suitable for free()ing
a java.sql.Blob, Clob, Array or SQLXML.  Ditto for those APIs that chose
destroy(), cleanup(), shutdown() etc.

Mark



More information about the coin-dev mailing list