tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Konstantin Kolinko <knst.koli...@gmail.com>
Subject Re: svn commit: r1491976 - /tomcat/trunk/java/javax/servlet/ServletRequest.java
Date Tue, 11 Jun 2013 22:49:54 GMT
This was for setAttribute(), removeAttribute().

1. There is also documentation for getAttribute().
2. There is also documentation for similar methods in ServletContext.
3. I suspect that only sun/oracle prefixes are reserved "for use by oracle"
(Reading Servlet 3.0, java.*, javax.* are reserved in general. Only
sun/com.sun prefixes were reserved specifically by Sun).

2013/6/12  <markt@apache.org>:
> Author: markt
> Date: Tue Jun 11 21:38:27 2013
> New Revision: 1491976
>
> URL: http://svn.apache.org/r1491976
> Log:
> Servlet 3.1 expands the list of reserved names.
>
> Modified:
>     tomcat/trunk/java/javax/servlet/ServletRequest.java
>
> Modified: tomcat/trunk/java/javax/servlet/ServletRequest.java
> URL: http://svn.apache.org/viewvc/tomcat/trunk/java/javax/servlet/ServletRequest.java?rev=1491976&r1=1491975&r2=1491976&view=diff
> ==============================================================================
> --- tomcat/trunk/java/javax/servlet/ServletRequest.java (original)
> +++ tomcat/trunk/java/javax/servlet/ServletRequest.java Tue Jun 11 21:38:27 2013
> @@ -299,8 +299,9 @@ public interface ServletRequest {
>       * {@link RequestDispatcher}.
>       * <p>
>       * Attribute names should follow the same conventions as package names.
> -     * Names beginning with <code>java.*</code>, <code>javax.*</code>,
and
> -     * <code>com.sun.*</code>, are reserved for use by Sun Microsystems.
<br>
> +     * Names beginning with <code>java.*</code>, <code>javax.*</code>,
> +     * <code>sun.*</code>, <code>com.sun.*</code>, <code>oracle.*</code>
and
> +     * <code>com.oracle.*</code) are reserved for use by Oracle Corporation.<br>
>       * If the object passed in is null, the effect is the same as calling
>       * {@link #removeAttribute}. <br>
>       * It is warned that when the request is dispatched from the servlet resides
> @@ -321,8 +322,9 @@ public interface ServletRequest {
>       * handled.
>       * <p>
>       * Attribute names should follow the same conventions as package names.
> -     * Names beginning with <code>java.*</code>, <code>javax.*</code>,
and
> -     * <code>com.sun.*</code>, are reserved for use by Sun Microsystems.
> +     * Names beginning with <code>java.*</code>, <code>javax.*</code>,
> +     * <code>sun.*</code>, <code>com.sun.*</code>, <code>oracle.*</code>
and
> +     * <code>com.oracle.*</code) are reserved for use by Oracle Corporation.
>       *
>       * @param name
>       *            a <code>String</code> specifying the name of the attribute
to
>

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


Mime
View raw message