https://issues.apache.org/bugzilla/show_bug.cgi?id=50940

--- Comment #4 from Konstantin Kolinko <knst.koli...@gmail.com> 2011-03-17 
08:18:25 EDT ---
I do not think that this is a valid use case. Note, that
1) JSP precompilation makes sense only for precisely the same Tomcat version
that you are targeting it. There is not much guarantee that precompiled JSPs
will work in another minor Tomcat version.
2) The servlet API already uses generics (as in ServletRequest.
getAttributeNames() method) and annotations.

If you want your JSPs to work in another servers or in earlier versions of
Tomcat, try those another servers.


(In reply to comment #3)
> - remove the generics from the JSP generation

I do not see why we should that, given that the API uses Java 5 features.

> - warn if compilerSourceVM is set to anything less than 1.5

The failure reported by compiler already prevents users from setting those
values. (As the OP has reported).

> and reset it to 1.5

I do not see the need to autocorrect broken configurations in this case.

(In reply to comment #2)
> That's fine, but then the compilerSourceVM option should be removed.

I do not think that one has to remove it. E.g., if you are using Java 7
features in your scriptlets in your JSPs and are deploying on a Tomcat that
runs on Java 7 you would want to set that option to the value of "7". (If the
ecj compiler will support that value by that time).

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to