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

Replace JVM type comparisons to T_OBJECT and T_ARRAY with call to is_reference_type

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 14
    • 14
    • hotspot
    • b16

      Numerous JVM conditionals compare against T_OBJECT and T_ARRAY

      } else if (type == T_OBJECT || type == T_ARRAY) {

      For readability and future extendability replace with a call to

      } else if (is_reference_type(type)) {

            lfoltan Lois Foltan
            lfoltan Lois Foltan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: