[jax-rs-spec users] [jsr339-experts] Re: Configurable.register() ignores illegal classes

From: Sergey Beryozkin <>
Date: Thu, 9 May 2013 15:00:29 +0100

Hi Bill
On 09/05/13 14:31, Bill Burke wrote:
> The javadoc for Configurable.register(Class) says that the container
> should ignore and warn if a user tries to register an illegal class.
> This is bad behavior, IMO. Instead it should throw an
> IllegalArgumentException

This would break the compatibility, example, JAX-RS 3.0 applications
(custom applications aware of new 3.0 extensions) registering these new
extensions with 2.0 JAX-RS stacks
> I ran into this in the TCK, where the TCK was trying to register
> non-static anonymous classes. Which have no public contructor. And,
> really non-static inner classes shouldn't be allowed to be registered.

Cheers, Sergey