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 ?

[490 byte] By [eaajea] at [2007-11-27 10:30:54]
# 1

You mean change the interface Serializable to an annotation? I doubt it. Could break all manner of existing code

georgemca at 2007-7-28 18:05:45 > top of Java-index,Java Essentials,Java Programming...
# 2

the implements MarkerInterface can be stay ,and the annotation added to do this .

eaajea at 2007-7-28 18:05:45 > top of Java-index,Java Essentials,Java Programming...
# 3

> 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

georgemca at 2007-7-28 18:05:45 > top of Java-index,Java Essentials,Java Programming...
# 4

> > 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...

jwentinga at 2007-7-28 18:05:45 > top of Java-index,Java Essentials,Java Programming...
# 5

> 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.

petes1234a at 2007-7-28 18:05:45 > top of Java-index,Java Essentials,Java Programming...