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

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

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      x86
    • OS:
      windows_nt

      Description

      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();
      }

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: