Meaningless Drivel is fun!*
The moose likes Beginning Java and the fly likes annotation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "annotation " Watch "annotation " New topic
Author

annotation

Sergio Gazzini
Greenhorn

Joined: May 29, 2011
Posts: 12
In docs:
"The common interface extended by all annotation types. Note that an interface that manually extends this one does not define an annotation type. Also note that this interface does not itself define an annotation type."
But what means "manually extends"?
Which another way to extend interface?
Thanks.
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14074
    
  16

It means that if you write code like this:

in other words, you create an interface that explicitly extends Annotation, then MyAnnotationButNotReally is not an annotation.

You create annotations using @interface instead:


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: annotation
 
Similar Threads
@Deprecated
Annotation attributes with type parameters
How can i write marker inerface
Listeners hierarchy?
inherited annotations