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

Typo in AuFileReader

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 9
    • 8, 9
    • client-libs
    • b105
    • generic
    • generic

    Description

      AuFileReader has a next typo:

              if (! (magic == AuFileFormat.AU_SUN_MAGIC) || (magic == AuFileFormat.AU_DEC_MAGIC) ||
                  (magic == AuFileFormat.AU_SUN_INV_MAGIC) || (magic == AuFileFormat.AU_DEC_INV_MAGIC) ) {

                  // not AU, throw exception
                  throw new UnsupportedAudioFileException("not an AU file");
              }

              if ((magic == AuFileFormat.AU_SUN_MAGIC) || (magic == AuFileFormat.AU_DEC_MAGIC)) {
                  bigendian = true; // otherwise little-endian
              }

      Can you spot a typo? It seems that intention was to support all 4 AU_ types.

      Attachments

        Activity

          People

            serb Sergey Bylokhov
            serb Sergey Bylokhov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: