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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 9
    • 9
    • hotspot
    • None
    • svc
    • b127

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: