Right, thanks for explanation, Felix.

Confirmed, this works for me now as well.

Thanks
Carsten


2014-02-21 13:22 GMT+01:00 Felix Meschberger <[email protected]>:

> Hi
>
> Am 21.02.2014 um 11:37 schrieb Julian Sedding <[email protected]>:
>
> > Maybe checking if the file exists works, see
> >
> http://stackoverflow.com/questions/3080437/jdk-tools-jar-as-maven-dependency#answer-3080695
>
> Thanks alot. This works indeed. I have committed this in Rev. 1570550.
>
>
> Am 21.02.2014 um 10:21 schrieb Carsten Ziegeler <[email protected]>:
>
> > I'm wondering if we need the additional compilation at all?
> > What happens if we set servlet api 3 as the dependency for the project
> and
> > add the missing methods as stubs to SlingServletContext and
> > ExternalServletContextWrapper? These methods shouldn't be called when in
> a
> > servlet 2.5 env
>
> Yes we need it: Servlet API 3 does not only introduce new methods but also
> new types. And to be able to load classes with the new types in their
> method's signatures requires these new types which is not the case in
> Servlet API 2. So we have two have two classes: the Servlet API 2.5 based
> base class and the Servlet API 3 based extension. The base class, though,
> does not compile with Servlet API 3 due to missing methods.
>
> Hence we have to compile the base and extension class differently ...
>
> Regards
> Felix




-- 
Carsten Ziegeler
[email protected]

Reply via email to