Name: mf23781 Date: 08/25/98
*Test case:
JD_0005f8_0005f1_0005Native.h
=================================
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class JD_0005f8_0005f1_0005fNative */
#ifndef _Included_JD_0005f8_0005f1_0005fNative
#define _Included_JD_0005f8_0005f1_0005fNative
#ifdef __cplusplus
extern "C" {
#endif
/*
* Class: JD_0005f8_0005f1_0005fNative
* Method: greeting
* Signature: ()V
*/
JNIEXPORT void JNICALL Java_JD_18_11_1Native_greeting
(JNIEnv *, jclass);
#ifdef __cplusplus
}
#endif
#endif
JD_8_1_Native.c
===============
#include "JD_0005f8_0005f1_0005fNative.h"
#include <stdio.h>
JNIEXPORT void JNICALL Java_JD_18_11_1Native_greeting
(JNIEnv * e, jclass cl)
{
printf("Hello world!\n");
}
JD_8_1_Natine.def
==================
LIBRARY JD_8_1_Native
EXPORTS
;From object file: .\JD_8_1_Native.obj
;PUBDEFs (Symbols available from object file):
_Java_JD_18_11_1Native_greeting@8
JD_8_1_Native.java
===================
class JD_8_1_Native
{ public static native void greeting();
static
{
System.loadLibrary("JD_8_1_Native"); //(1)
}
}
JD_8_1_TEST_Native.java
=========================
class JD_8_1_TEST_Native
{ public static void main(String[] args)
{
JD_8_1_Native.greeting(); //(2)
} //(3)
}
*Steps to reproduce the problem:
jdb JD_8_1_TEST_Native
stop in JD_8_1_TEST_Native.main
run
step
list
*Outputs:
1.1.6
==========
P:\defects\6925>jdb JD_8_1_TEST_Native
Initializing jdb...
Warning: JIT compiler "symcjit" not found. Will use interpreter.
0xf8faa0:class(JD_8_1_TEST_Native)
> stop in JD_8_1_TEST_Native.main
Breakpoint set in JD_8_1_TEST_Native.main
> run
run JD_8_1_TEST_Native
running ...
main[1]
Breakpoint hit: JD_8_1_TEST_Native.main (JD_8_1_TEST_Native:4)
main[1] step
main[1]
Breakpoint hit: JD_8_1_Native.<clinit> (JD_8_1_Native:5)
main[1] list
[Internal debug-agent error: operation failed to complete - deadlock avoided]Internal
exception:
java.lang.InterruptedException
at sun.tools.debug.RemoteAgent.getClassInfo(Compiled Code)
at sun.tools.debug.RemoteClass.getClassInfo(Compiled Code)
at sun.tools.debug.RemoteClass.getSourceFile(RemoteClass.java:157)
at sun.tools.ttydebug.TTY.list(Compiled Code)
at sun.tools.ttydebug.TTY.executeCommand(TTY.java:1405)
at sun.tools.ttydebug.TTY.<init>(Compiled Code)
at sun.tools.ttydebug.TTY.main(Compiled Code)
main[1]
1.1.7H
========
P:\defects\6925>jdb JD_8_1_TEST_Native
Initializing jdb...
0xf900b8:class(JD_8_1_TEST_Native)
> stop in JD_8_1_TEST_Native.main
Breakpoint set in JD_8_1_TEST_Native.main
> run
run JD_8_1_TEST_Native
running ...
main[1]
Breakpoint hit: JD_8_1_TEST_Native.main (JD_8_1_TEST_Native:4)
main[1] step
main[1]
Breakpoint hit: JD_8_1_Native.<clinit> (JD_8_1_Native:5)
main[1] list
[Internal debug-agent error: operation failed to complete - deadlock avoided]Internal exce
ption:
java.lang.InterruptedException
at sun.tools.debug.RemoteAgent.getClassInfo(Compiled Code)
at sun.tools.debug.RemoteClass.getClassInfo(Compiled Code)
at sun.tools.debug.RemoteClass.getSourceFile(RemoteClass.java:149)
at sun.tools.ttydebug.TTY.list(Compiled Code)
at sun.tools.ttydebug.TTY.executeCommand(TTY.java:1397)
at sun.tools.ttydebug.TTY.<init>(Compiled Code)
at sun.tools.ttydebug.TTY.main(Compiled Code)
main[1]
1.2fcs-E
===========
P:\defects\6925>jdb JD_8_1_TEST_Native
Initializing jdb...
0xa9:class(JD_8_1_TEST_Native)
> stop in JD_8_1_TEST_Native.main
Breakpoint set in JD_8_1_TEST_Native.main
> run
run JD_8_1_TEST_Native
running ...
main[1]
Breakpoint hit: JD_8_1_TEST_Native.main (JD_8_1_TEST_Native:4)
main[1] step
main[1]
Breakpoint hit: java.lang.ClassLoader.loadClass (ClassLoader:202)
main[1] list
Unable to find ClassLoader.java
main[1]
======================================================================
- duplicates
-
JDK-4168853 STD: Stepover System.loadLibrary(String) acts as step into
-
- Closed
-