< prev index next >

src/jdk.compiler/share/classes/com/sun/tools/javac/jvm/ModuleNameReader.java

Print this page

        

*** 103,113 **** int access_flags = nextChar(); if (access_flags != 0x8000) throw new BadClassFile("invalid access flags for module: 0x" + Integer.toHexString(access_flags)); int this_class = nextChar(); ! // could, should, check this_class == CONSTANT_Class("mdoule-info") checkZero(nextChar(), "super_class"); checkZero(nextChar(), "interface_count"); checkZero(nextChar(), "fields_count"); checkZero(nextChar(), "methods_count"); int attributes_count = nextChar(); --- 103,113 ---- int access_flags = nextChar(); if (access_flags != 0x8000) throw new BadClassFile("invalid access flags for module: 0x" + Integer.toHexString(access_flags)); int this_class = nextChar(); ! // could, should, check this_class == CONSTANT_Class("module-info") checkZero(nextChar(), "super_class"); checkZero(nextChar(), "interface_count"); checkZero(nextChar(), "fields_count"); checkZero(nextChar(), "methods_count"); int attributes_count = nextChar();
< prev index next >