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

Implicit narrowing in MacOSX java.desktop jsound

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 12
    • Fix Version/s: 12
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b16
    • CPU:
      generic
    • OS:
      os_x

      Description

      The MacOSX version of the jsound library in java.desktop gets an implicit narrowing warning when compiled for C++11/14, resulting in a build failure. The problem is in PORT_GetControls, where the channel number (declared as int) is used in the initializer for an AudioObjectPropertyAddress (where unsigned int is needed). The resulting implicit narrowing is forbidden by C++11 and later.

        Attachments

          Activity

            People

            • Assignee:
              kbarrett Kim Barrett
              Reporter:
              kbarrett Kim Barrett
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: