tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Janmyr Anders <anders.jan...@btj.se>
Subject Bug in pageContextImpl
Date Tue, 01 Feb 2000 13:42:19 GMT
Hello,

I have found a bug in PageContextImpl.java
In removeAttribute, row 242 the line reads
session.setAttribute(name, null)

it should probably be
session.removeAttribute(name).

Since the underlying implementation of session uses Hashtable which cannot
contain nulls.

There is also a comment there from the previous implementation:
                // was:
                //		    session.removeValue(name);
                // REVISIT Verify this is correct - akv

The deprecation was from removeValue -> removeAttribute.

regards

Anders

Mime
View raw message