I think there is a bug in Finder.createResource() and Router.createFinder().

Both have some code like this:

            try {
                constructor = getTargetClass().getConstructor(Context.class,
                        Request.class, Response.class);

                if (constructor != null) {
                    result = (Resource) constructor.newInstance(getContext(),
                            request, response);
                } else {
      ... do something assuming the right constructor was not found.

The problem is that if the right constructor isn't found, a 
NoSuchMethodException is thrown. I don't think the else clause will
ever get executed.

Sean

Reply via email to