-
Bug
-
Resolution: Fixed
-
P4
-
1.2.1
-
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.)
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.)