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

Replace 19,20 case alternatives with JVM_CONSTANT_Module/Package names

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 13
    • 13
    • 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;
              }
            }

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

              Created:
              Updated:
              Resolved: