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

StringIndexOutOfBoundsException in com.sun.xml.internal.bind.v2.schemagen.Util.getParentUriPath

    XMLWordPrintable

Details

    • generic
    • generic

    Description

      A DESCRIPTION OF THE PROBLEM :
      The test failed with unexpected StringIndexOutOfBoundsException.
      We think you should consider the possible StringIndexOutOfBoundsException before calling substring.

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

      at java.lang.String.substring(String.java:1967)
      at com.sun.xml.internal.bind.v2.schemagen.Util.getParentUriPath(Util.java:73)

      ---------- BEGIN SOURCE ----------
      @Test
      public void test_getParentUriPath(){
              String string0 = "";
              com.sun.xml.internal.bind.v2.schemagen.Util.getParentUriPath(string0);
          }
      ---------- END SOURCE ----------

      Attachments

        Activity

          People

            rreddy Ravi Reddy
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: