2014-12-04 15:01 GMT+01:00 Mark Thomas <ma...@apache.org>:

> > Ah actually, it is a mix then of the two, it should implement what is
> > marked as WSC-4.8.1 in the spec instead.
>
> I thought that was what was implemented (prior to r1643008). What did I
> get wrong?
>
> The test is fairly explicit that the annotated methods from superclasses
should be used. And that's what the spec is really saying actually, but
it's nearly impossible to understand IMO. It mostly defines some exceptions
to that inheritance:
- if the subclass does not have its @*Endpoint annotation (fine) [spec
quote: For example, a Java class
that inherits from a Java class annotated with class level WebSocket
annotations does not itself become an
annotated endpoint, unless it itself is annotated with a class level
WebSocket annotation.]
- if an annotated method is overridden by a non annotated method (harder)

It starts with a confusing statement [The websocket annotation behaviors
defined by this specification are not passed down the Java class
inheritance hierarchy. They apply only to the Java class on which they are
marked.]. So the method level annotations would still be there in the
superclass and used unless the subclass overrides them.

So I tried to do that now, but my commit (r1643065) is lost somewhere.

Rémy

Reply via email to