Replace 19,20 case alternatives with JVM_CONSTANT_Module/Package names

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 13
    • Affects Version/s: 13
    • Component/s: hotspot
    • None
    • b18

      Change this code in classFileParser.cpp to use JVM_CONSTANT_Module and JVM_CONSTANT_Package instead of 19 and 20:

            case 19:
            case 20: {
              // Record that an error occurred in these two cases but keep parsing so
              // that ACC_Module can be checked for in the access_flags. Need to
              // throw NoClassDefFoundError in that case.
              if (_major_version >= JAVA_9_VERSION) {
                cfs->guarantee_more(3, CHECK);
                cfs->get_u2_fast();
                set_class_bad_constant_seen(tag);
                break;
              }
            }

            Assignee:
            Lois Foltan
            Reporter:
            Harold Seigel (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: