mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Matthew Swift
08.01.2016 1661b519754cb11b019db1731b55de015593d62a
OPENDJ-2669 Fix incorrect messages for memory settings error

* display correct argument when only the max heap size is specifid and
it is too high
* fix typo in JVM argument name: should be -Xmx not -Xms
* fix grammar in dialog messages
3 files modified
14 ■■■■ changed files
opendj-server-legacy/src/main/java/org/opends/quicksetup/JavaArguments.java 4 ●●●● patch | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/quicksetup/installer/ui/JavaArgumentsDialog.java 2 ●●● patch | view | raw | blame | history
opendj-server-legacy/src/messages/org/opends/messages/quickSetup.properties 8 ●●●● patch | view | raw | blame | history
opendj-server-legacy/src/main/java/org/opends/quicksetup/JavaArguments.java
@@ -12,7 +12,7 @@
 * information: "Portions Copyright [year] [name of copyright owner]".
 *
 * Copyright 2010 Sun Microsystems, Inc.
 * Portions Copyright 2013-2015 ForgeRock AS.
 * Portions Copyright 2013-2016 ForgeRock AS.
 */
package org.opends.quicksetup;
@@ -280,6 +280,6 @@
   */
  public static String getMaxMemoryGenericArgument()
  {
    return "-Xms<"+INFO_MEMORY_PLACEHOLDER.get()+">";
    return "-Xmx<"+INFO_MEMORY_PLACEHOLDER.get()+">";
  }
}
opendj-server-legacy/src/main/java/org/opends/quicksetup/installer/ui/JavaArgumentsDialog.java
@@ -787,7 +787,7 @@
    {
      LocalizableMessage msg = getMemoryErrorMessage(
          ERR_MAX_MEMORY_VALUE_EXTENDED.get(
              JavaArguments.getInitialMemoryGenericArgument()), maxMemory);
              JavaArguments.getMaxMemoryGenericArgument()), maxMemory);
      checkOptions(JavaArguments.getMaxMemoryArgument(maxMemory),
          errorMsgs,
          lMaxMemory,
opendj-server-legacy/src/messages/org/opends/messages/quickSetup.properties
@@ -853,15 +853,15 @@
 integer.
ERR_MAX_MEMORY_VALUE=The maximum memory value must be a positive integer.
ERR_MEMORY_VALUE_EXTENDED=Could not use the provided memory values. \
 Check that the running Java virtual machine supports to specify the %s and \
 Check that the running Java virtual machine supports the %s and \
 %s arguments and that there is enough memory in the machine to use the \
 provided values.
ERR_INITIAL_MEMORY_VALUE_EXTENDED=Could not use the provided initial \
 memory value. Check that the running Java virtual machine supports to \
 specify the %s argument and that there is enough memory in the machine to use \
 memory value. Check that the running Java virtual machine supports \
 the %s argument and that there is enough memory in the machine to use \
 the provided value.
ERR_MAX_MEMORY_VALUE_EXTENDED=Could not use the provided maximum memory \
 value. Check that the running Java virtual machine supports to specify the \
 value. Check that the running Java virtual machine supports the \
 %s argument and that there is enough memory in the machine to use the \
 provided value.
ERR_MEMORY_32_BIT_LIMIT=Note that 32-bit Java virtual machines do not \