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

-old -Xnew for method with boolean[] type parm

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 5.0
    • tools
    • x86
    • generic

      compile small test case below and run javah -Xnew -old test
      ----test.java----------
      public class test {
          public native void boola(boolean[] bol);
      }

      Results in error messages below.

      An unknown array type encountered when generating old style headers.
      java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle,
       key bug.report
              at java.util.ResourceBundle.getObject(ResourceBundle.java:314)
              at java.util.ResourceBundle.getString(ResourceBundle.java:274)
              at com.sun.tools.javah.Util.getText(Util.java:60)
              at com.sun.tools.javah.Util.getText(Util.java:53)
              at com.sun.tools.javah.Util.bug(Util.java:97)
              at com.sun.tools.javah.Util.bug(Util.java:90)
              at com.sun.tools.javah.OldHeaders.getCType(OldHeaders.java:340)
              at com.sun.tools.javah.OldHeaders.getCPrototypes(OldHeaders.java:200)
              at com.sun.tools.javah.OldHeaders.write(OldHeaders.java:70)
              at com.sun.tools.javah.Gen.run(Gen.java:132)
              at com.sun.tools.javah.MainDoclet.start(MainDoclet.java:102)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:324)
              at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:209)
              at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:89)
              at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:333)
              at com.sun.tools.javadoc.Start.begin(Start.java:127)
              at com.sun.tools.javadoc.Main.execute(Main.java:66)
              at com.sun.tools.javah.Main.main(Main.java:162)
      Key bug.report not found in resources.
      ###@###.### 2003-10-03

            ilittlesunw Ian Little (Inactive)
            ssides Steve Sides
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: