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

javah generates invalid stub

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P3 P3
    • None
    • 1.0
    • tools
    • sparc
    • solaris_2.4

      Date: Wed, 19 Jul 1995 04:13:46 -0400 (EDT)
      From: "Vishal Mehra" <###@###.###>
      Subject: generation of C stubs for arrays of arrays
      To: "java" <hotjava-interest@java>
      Cc: "Vishal Mehra" <###@###.###>


      My Java code looks like:

      Package neuralnet;

      class Neural {
             :
             :
             public native void main_loop(int cell_array[][]);
            }

      -----

      javah generates the following header file

      extern void neuralnet_Neural_main_loop(struct Hneuralnet_Neural *,
      HArrayOfInt *,void);

      ----

      Now I don't now how to access two dimension array because "HArrayOfInt *"
      just gives me one dimensional array. Morever what is the meaning of last
      argument been void.

      ---

      Any comments/suggestions regarding how to access arrays of arrays would
      be appreciated.

      -Vishal
      -
      Note to Sun employees: this is an EXTERNAL mailing list!
      Info: send 'help' to ###@###.###

            jmcilreesunw James Mcilree (Inactive)
            ahoffsunw Arthur Hoff (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: