jsr339-experts@jax-rs-spec.java.net

[jsr339-experts] Re: Updated Client API and Interceptors/Filters proposal is available - please review

From: Markus KARG <markus_at_headcrashing.eu>
Date: Sun, 12 Jun 2011 18:04:43 +0200

> > I don't quite understand why you push so hard for an interface in
> this particular case. Can you please provide more
> > explanation?
>
> I think we all understand the benefits of an interface over a class.
> Once something is declared as a class I'm forced to extend it which
> often leads to ugly delegation. Really, how many times have you been
> pissed off because some JDK or EE thing was declared as a class and not
> an interface?
> Besides, classes don't belong in a specification effort.
> Specifications
> are about specifying, not implementing unless you're defining an enum
> or
> exception (and it sucks exceptions must be classes in Java). As it is
> I'm very squeamish about classes over interfaces because I do have to
> reimplement them as I'm licensing with a different open source license
> (ASL, LGPL). Given the aggressive litigation history of your company,
> maybe you can understand?

I fully agree!

-Markus