You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Jeremy Boynes <jb...@apache.org> on 2015/10/07 17:36:17 UTC

Re: Bug #57505 - Integration tests for JspC

On Sep 21, 2015, at 11:23 AM, Dinesh Joshi <di...@gmail.com> wrote:
> 
> Hi all,
> 
> I'm looking to contribute to Tomcat development. I am planning to take a crack at this bug - https://bz.apache.org/bugzilla/show_bug.cgi?id=57505 Anybody working on it? Can someone give me some pointers on how I should proceed with it?

IIRC, I opened this after we had a couple of regressions during refactoring of Jasper that worked within the container but did not work when run for pre-compilation. I don’t think anyone is looking at it and all contributions would be welcome.

Pointers … this would be a different type of test case as most of our existing integration tests spin up an embedded server which is the opposite of what is needed here. JspC is a JavaBean designed for use in an Ant task so executing it from a test should not be difficult. Most of the work would be in verifying the results. Ideas here might be to pre-process one or more webapps and inspect the generated Java or compile it, deploy it to an embedded server and execute the pre-compiled pages; the latter might be easier.

Cheers
Jeremy