annotation VS marker Interface
so after Annotation released
can we say :
@Serializable
publicclass A{}
rather than :
publicclass Aimplements Serializable{}
is there any plan to embedded this to JDK1.7 ?
so after Annotation released
can we say :
@Serializable
publicclass A{}
rather than :
publicclass Aimplements Serializable{}
is there any plan to embedded this to JDK1.7 ?
You mean change the interface Serializable to an annotation? I doubt it. Could break all manner of existing code
> the implements MarkerInterface can be stay ,and the
> annotation added to do this .
No idea. Haven't heard anything about this for 1.7, have a look at Sun's 1.7 site and see what they're putting in
> > the implements MarkerInterface can be stay ,and
> the
> > annotation added to do this .
>
> No idea. Haven't heard anything about this for 1.7,
> have a look at Sun's 1.7 site and see what they're
> putting in
if Ruby or C# doesn't have it it won't be put into Java in the foreseeable future...
> if Ruby or C# doesn't have it it won't be put into
> Java in the foreseeable future...
Is java following Ruby's lead? I never knew, but then again, I really don't know much of anything about Ruby. Maybe I was dumb by picking Python as the scripting language I would learn this year.