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

unexpected StringIndexOutOfBoundsException in jdk.jfr.internal.Utils.formatBits

XMLWordPrintable

    • jfr
    • generic
    • generic

      A DESCRIPTION OF THE PROBLEM :
      The test case failed with unexpected StringIndexOutOfBoundsException.

      ACTUAL -
      java.lang.StringIndexOutOfBoundsException: String index out of range: -1

      at java.lang.String.charAt(String.java:658)
      at jdk.jfr.internal.Utils.formatDataAmount(Utils.java:109)
      at jdk.jfr.internal.Utils.formatBits(Utils.java:127)

      ---------- BEGIN SOURCE ----------
          @Test
          public void test_formatBits(){

              long long0 = -9223372036854775808L;
              jdk.jfr.internal.Utils.formatBits(long0);

          }
      ---------- END SOURCE ----------

      FREQUENCY : occasionally


            sswsharm swati sharma (Inactive)
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: