src/jdk.jdwp.agent/share/native/libjdwp/ReferenceTypeImpl.c

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1998, 2005, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 1998, 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 107,116 **** --- 107,136 ---- (void)outStream_writeObjectRef(env, out, loader); return JNI_TRUE; } static jboolean + getModule(PacketInputStream *in, PacketOutputStream *out) + { + jobject clazz; + jobject module; + JNIEnv *env; + + env = getEnv(); + + clazz = inStream_readClassRef(env, in); + if (inStream_error(in)) { + return JNI_TRUE; + } + + module = JNI_FUNC_PTR(env,GetModule)(env, clazz); + + (void)outStream_writeModuleRef(env, out, module); + return JNI_TRUE; + } + + static jboolean modifiers(PacketInputStream *in, PacketOutputStream *out) { jint modifiers; jclass clazz; jvmtiError error;
*** 603,613 **** (void)outStream_writeObjectRef(env, out, clazz); return JNI_TRUE; } ! void *ReferenceType_Cmds[] = { (void *)18 ,(void *)signature ,(void *)getClassLoader ,(void *)modifiers ,(void *)fields ,(void *)methods --- 623,633 ---- (void)outStream_writeObjectRef(env, out, clazz); return JNI_TRUE; } ! void *ReferenceType_Cmds[] = { (void *)19 ,(void *)signature ,(void *)getClassLoader ,(void *)modifiers ,(void *)fields ,(void *)methods
*** 622,627 **** --- 642,648 ---- ,(void *)fieldsWithGeneric ,(void *)methodsWithGeneric ,(void *)instances ,(void *)getClassVersion ,(void *)getConstantPool + ,(void *)getModule };