langtools/test/tools/javac/modules/AnachronisticModuleInfo/module-info.jcod
author jlahoda
Mon, 29 Aug 2016 15:53:03 +0200
changeset 40602 50045337b3a1
parent 40502 59dadf1bedbe
permissions -rw-r--r--
8164745: javac -Xmodule compiles the module in a way that reads the unnamed module Summary: Ensuring proper separation between named modules the unnamed module when using -Xmodule Reviewed-by: jjg

class foo/module-info {
  0xCAFEBABE;
  0; // minor version
  52; // version
  [] { // Constant Pool
    ; // first element is empty
    class #6; // #1    
    Utf8 "SourceFile"; // #2    
    Utf8 "module-info.java"; // #3    
    Utf8 "Module"; // #4    
    Utf8 "java.base"; // #5    
    Utf8 "foo/module-info"; // #6    
  } // Constant Pool

  0x8000; // access
  #1;// this_cpx
  #0;// super_cpx

  [] { // Interfaces
  } // Interfaces

  [] { // fields
  } // fields

  [] { // methods
  } // methods

  [] { // Attributes
    Attr(#2) { // SourceFile
      #3;
    } // end SourceFile
    ;
    Attr(#4) { // Module
      0x0001000580000000;
      0x00000000;
    } // end Module
  } // Attributes
} // end class foo/module-info