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

[jsr339-experts] Configurable.register() ignores illegal classes

From: Bill Burke <bburke_at_redhat.com>
Date: Thu, 09 May 2013 09:31:29 -0400

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

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.
-- 
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com