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

fp.bugs 2233: Wants support for accessing static data in native methods

XMLWordPrintable

    • x86
    • windows_nt

      Davor Matic <###@###.###>

      Wants support for accessing static data members in native methods.

      Steps to reproduce:
      Compile the following java code.
      run javah on the resulting class file
      open StaticTest.h
      // note that the static int is not accessable


      /* Static test */

      class StaticTest
      {
          int not_static_int;
          static int static_int;

          public StaticTest(int x, int y)
          {
             not_static_int = x;
             static_int = y;
          }

          native boolean Native1();
          static native void Native2();
      }

            jmcilreesunw James Mcilree (Inactive)
            kasmithsunw Kevin Smith (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: