puniverse / quasar

Fibers, Channels and Actors for the JVM
http://docs.paralleluniverse.co/quasar/
Other
4.56k stars 575 forks source link

Why is @Suspendable not @Inherited? #276

Closed mikehearn closed 7 years ago

mikehearn commented 7 years ago

One of the most common cases where I forgot to mark methods as suspendable is when I've overridden a method that was already marked. If the annotation was meta-annotated with @Inherited that issue would seem to go away.

pron commented 7 years ago

@Inherited applies only to class annotations:

Note that this meta-annotation type has no effect if the annotated type is used to annotate anything other than a class.