question: static int readTypeRef ( TypeReference typeRef , DataInputStream input , int [ ] constantPool ) throws IOException , ClassFormatError { int myTypeIndex = input . readUnsignedShort ( ) ; TypeReference myTypeRef = getTypeRef ( constantPool , myTypeIndex ) ; if ( myTypeRef != typeRef ) { if ( ! VM . VerifyAssertions ) { throw new ClassFormatError ( "expected class \"" + typeRef . getName ( ) + "\" but found \"" + myTypeRef . getName ( ) + "\"" ) ; } else { throw new ClassFormatError ( "expected class \"" + typeRef . getName ( ) + "\" but found \"" + myTypeRef . getName ( ) + "\"\n" + typeRef + " != " + myTypeRef ) ; } } return myTypeIndex ; }
target:  Read the class' TypeReference