langtools/test/tools/javac/modules/T8159439/module-info.jcod
author vromero
Mon, 27 Jun 2016 12:29:41 -0700
changeset 39361 cd0aca7db174
permissions -rw-r--r--
8159439: javac throws NPE with Module attribute and super_class != 0 Reviewed-by: jjg

module mod {
  0xCAFEBABE;
  0; // minor version
  53; // version
  [] { // Constant Pool
    ; // first element is empty
    Utf8 "mod/module-info"; // #1    
    class #1; // #2    
    Utf8 "java/lang/Object"; // #3    
    class #3; // #4    
    Utf8 "java.base"; // #5    
    Utf8 "pkg"; // #6    
    Utf8 "Module"; // #7    
    Utf8 "Version"; // #8    
    Utf8 "6.0"; // #9    
  } // Constant Pool

  0x8000; // access
  #2;// this_cpx
  #4;// super_cpx

  [] { // Interfaces
  } // Interfaces

  [] { // fields
  } // fields

  [] { // methods
  } // methods

  [] { // Attributes
    Attr(#7) { // Module
      [] { // requires
        #5 0x8020;
      } // requires

      [] { // exports
        #6
        [] { // to
        }; // end to
      } // exports

      [] { // uses
      } // uses

      [] { // provides
      } // provides

    } // end Module
    ;
    Attr(#8) { // Version
      0x0009;
    } // end Version
  } // Attributes
} // end module mod