On Wed, Apr 4, 2018 at 9:54 AM, Mark Thomas <ma...@apache.org> wrote:

> On 04/04/18 08:52, Rémy Maucherat wrote:
> > On Wed, Apr 4, 2018 at 9:34 AM, Emmanuel Bourg <ebo...@apache.org>
> wrote:
> >
> >> Hi all,
> >>
> >> Has anyone considered using the javax.tools API (JSR 199) to compile the
> >> JSPs yet? This could provide a unified API to compile the JSPs since ECJ
> >> also implements this API, and it would simplify the integration of javac
> >> with Tomcat (no need to copy the Ant jars). With the new Java release
> >> schedule I think more people will consider switching to javac to benefit
> >> from the new language features before ECJ implements them, better
> >> integrating javac would help this use case.
> >
> > I like the implicit hint that scriptlets are really cool, and especially
> > if you start using new funny language constructs. I just don't get this
> > sort of request *at all*.
> > So it's a -0 from me.
>
> I like the idea of simplifying the integration of javac - irrespective
> of the reasoning for wanting to use javac. I guess it is something to
> look at in Tomcat 10. Whether or not it gets back-ported is a different
> question. I guess it depends what the solution ends up looking like.
>
> I guess if AntCompiler gets dropped when this is added, then it's a win.
Still, scriplets abuse is really the worst thing that has been going on for
almost 20 years and will apparently never die as it seems new "cooler" ones
are constantly being written.

Rémy

Reply via email to