Skip to content
OpenAdvisories

Weakness (CWE)

CWE-486: Comparison of Classes by Name

Variant Draft

The product compares classes by name.

How to prevent it (1 mitigation)
  1. Implementation

    Use class equivalency to determine type. Rather than use the class name to determine if an object is of a given type, use the getClass() method, and == operator.

Source: MITRE CWE-486

0 results · Clear filters · Feed

Nothing found.