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

rmic error messages shouldn't suggest obselete VM options -mx and -oss

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 6
    • 1.2.1
    • core-libs
    • beta
    • generic
    • generic

      The resource file src/share/classes/sun/rmi/rmic/resources/rmic.properties, used by the rmic tool, contains the following error messages for when an OutOfMemoryError or a StackOverflowError occurs during rmic's operation:

      rmic.no.memory= The compiler has run out of memory. Consider using the "-J-mx<number>" command line option to increase the maximum heap size.

      rmic.stack.overflow= The compiler has run out of stack space. Consider using the "-J-oss<number>" command line option to increase the memory allocated for the Java stack.

      But the suggested VM options "-mx" and "-oss" date from the JDK 1.1 VM, and they have become obselete since then. The equivalent VM options in J2SE 1.3 and beyond are -X options:

          -Xmx<size> set maximum Java heap size
          -Xss<size> set java thread stack size

      (1.2 appears to support -Xmx but not -Xss.)

      These rmic error messages should be modified to refer to the currently supported options for controlling the maximum heap size and stack size-- or at least the suggestion of obselete VM options should be removed.

      (This same issue applies to other localizations of this resource file.)

            peterjones Peter Jones (Inactive)
            peterjones Peter Jones (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: