Closed Bug 15837 Opened 25 years ago Closed 25 years ago

Methods in NodeList and NamedNodeMap return Node base class

Categories

(Core Graveyard :: Java APIs for DOM, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: akhil.arora, Assigned: akhil.arora)

Details

Methods in NodeList and NamedNodeMap that return instances of class Node explicitly allocate Node and return it. This is wrong. Although the method signature declares Node as the return type, the actual return type can be an instance of any class that extends Node, such as Element or Attribute.
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.