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

Incorrect check of package in Line.Info.toString()

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 11, 12, 13
    • Fix Version/s: 13
    • Component/s: client-libs
    • Subcomponent:
    • Resolved In Build:
      b15
    • CPU:
      generic
    • OS:
      generic

      Description

      The Line.Info.toString() has this check for the system package:
       328 String fullPackagePath = "javax.sound.sampled.";
       329 String initialString = new String(getLineClass().toString());
       332 int index = initialString.indexOf(fullPackagePath);
       334 if (index != -1) {

      This check accepted packages which are not system packages, like this:
      "bug.javax.sound.sampled"

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                serb Sergey Bylokhov
                Reporter:
                serb Sergey Bylokhov
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: