Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-7140882

Don't return booleans from methods returning pointers

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • hs23
    • hs23
    • hotspot
    • None
    • b13
    • generic
    • generic

        The methods constantPoolOopDesc::method_at_if_loaded() and CountedLoopNode::match_incr_with_optional_truncation() both have "return false" statements even though their actual return values are pointers (methodOop and Node*).

        This is wrong and it will cause builds to fail with GCC 4.7.

              brutisso Bengt Rutisson (Inactive)
              brutisso Bengt Rutisson (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: