Hello Sean,

I've committed a new release of Finder class in the SVN repository.
I've not updated Router class, since the Router logic seems a bit different to me.

thank you!
Thierry


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