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

NSApplicationAWT.m:343:72: error: comparison of constant 777 with expression of type 'NSEventSubtype'

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: client-libs
    • Environment:

      Mac OS X 10.10.3 with XCode 6.3.1

    • Subcomponent:
    • Resolved In Build:
      b76
    • OS:
      os_x

      Backports

        Description

        /Volumes/Work/current/jdks/jdk9_test/jdk/src/java.desktop/macosx/native/libosxapp/NSApplicationAWT.m:343:72: error: comparison of constant 777 with expression of type 'NSEventSubtype' (aka 'enum NSEventSubtype') is always false [-Werror,-Wtautological-constant-out-of-range-compare]
            } else if ([event type] == NSApplicationDefined && [event subtype] == 777) {
                                                               ~~~~~~~~~~~~~~~ ^ ~~~
        1 error generated.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  serb Sergey Bylokhov
                  Reporter:
                  gziemski Gerard Ziemski
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: