...
The Provider
class inherits the put()
and remove()
methods from Hashtable
and adds security manager checks to each. These checks ensure that malicious code cannot add or remove the mappings. When entrySet()
was introduced, it became possible for untrusted code to remove the mappings from the Hashtable
because Provider
failed to override this method to provide the necessary security manager check [SCG 2009]. This problem is commonly known as a fragile class hierarchy in other object-oriented languages, such as C++.
...
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="d09784fe2b35e92e-e60933fc-434344f6-bc48b3f5-6e34bdf802b0197ccb0b489a"><ac:plain-text-body><![CDATA[ | [[API 2006 | AA. Bibliography#API 06]] | [Class | http://download.oracle.com/javase/6/docs/api/java/util/Calendar.html] | ]]></ac:plain-text-body></ac:structured-macro> |
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="f00fc04a3fd53176-b3243b83-409d4790-b286a10d-b8ac3c776a15df8c3bcbf57c"><ac:plain-text-body><![CDATA[ | [[Bloch 2008 | AA. Bibliography#Bloch 08]] | Item 16. Favor composition over inheritance | ]]></ac:plain-text-body></ac:structured-macro> | |
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="596aa721597c8298-3689b0d3-4b8643eb-ba21bdb2-b9012c541b8c94e16b0abe45"><ac:plain-text-body><![CDATA[ | [[Gamma 1995 | AA. Bibliography#Gamma 95]] | Design Patterns, Elements of Reusable Object-Oriented Software | ]]></ac:plain-text-body></ac:structured-macro> | |
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="a4bcb0d4b0c2eb84-7fcf7616-41314923-9562b0e2-c8eebce052a153341775cbf3"><ac:plain-text-body><![CDATA[ | [[Lieberman 1986 | AA. Bibliography#Lieberman 86]] | Using prototypical objects to implement shared behavior in object-oriented systems | ]]></ac:plain-text-body></ac:structured-macro> |
...