Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4168538

Cannot put break point within Static Block

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.1.6
    • core-svc
    • x86
    • windows_nt



      Name: mf23781 Date: 08/24/98


      *Test case:


      JD_0005f8_0005f1_005fNative.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_Native.def
      ==================

      LIBRARY JD_8_1_Native
      EXPORTS


      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 at JD_8_1_TEST_Native:5


      *Outputs:

      1.1.6
      ========

      P:\defects\6439>jdb JD_8_1_TEST_Native
      Initializing jdb...
      Warning: JIT compiler "symcjit" not found. Will use interpreter.
      0xf9fab8:class(JD_8_1_TEST_Native)
      > stop at JD_8_1_TEST_Native:5
      No code at line 5, or class is optimized.
      >


      1.1.7H
      ======



      P:\defects\6439>jdb JD_8_1_TEST_Native
      Initializing jdb...
      0xf9ff50:class(JD_8_1_TEST_Native)
      > stop at JD_8_1_TEST_Native:5
      No code at line 5, or class is optimized.
      >



      1.2fsc-E
      ======


      P:\defects\6439>jdb JD_8_1_TEST_Native
      Initializing jdb...
      0xa9:class(JD_8_1_TEST_Native)
      > stop at JD_8_1_TEST_Native:5
      No code at line 5, or class is optimized.
      >

      ======================================================================

            Unassigned Unassigned
            miflemi Mick Fleming
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: