Typo in message for NULL memory size arguments in diagnosticArgument.cpp

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 9
    • Affects Version/s: 9
    • Component/s: hotspot
    • None
    • svc
    • b127

      hotspot/src/share/vm/services/diagnosticArgument.cpp:
      template <> void DCmdArgument<MemorySizeArgument>::parse_value(const char* str,
                                                        size_t len, TRAPS) {
        if (str == NULL) {
          THROW_MSG(vmSymbols::java_lang_IllegalArgumentException(),
                    "Integer parsing error nanotime value: syntax error");
        }

      There are typo in message for str == NULL. It was copy/pasted from nanotime error message. It should be changed to the "Parsing error memory size value: syntax error, value is null" to be consistent with other error messages for memory size arguments.

            Assignee:
            Dmitry Dmitriev
            Reporter:
            Dmitry Dmitriev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: