* [ 1795685 ] Don't populate readonly lookup

- Fixed bug reported by Teo.
This commit is contained in:
Heng Sin Low 2007-09-17 01:37:25 +00:00
parent f760078ce4
commit 09133e91bc
1 changed files with 9 additions and 1 deletions

View File

@ -239,7 +239,15 @@ public final class MLookup extends Lookup implements Serializable
*/
public boolean containsKey (Object key)
{
return m_lookup.containsKey(key);
//should check direct too
if (m_lookup.containsKey(key))
return true;
else {
if (m_lookup.size() > 0)
return false;
else
return ( get(key) != null );
}
} // containsKey
/**