VS2010 build failure in awt_TextArea.cpp: ambiguous call to abs()

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 7
    • Affects Version/s: 7
    • Component/s: client-libs
    • b94
    • generic
    • windows

      When building JDK7 with Visual Studio 2010, the build fails in make/sun/awt when compiling awt_TextArea.cpp:761

          int actualScrollLines =
              abs(platfScrollLines * (*delta_accum / WHEEL_DELTA));

      The call to abs() is considered ambiguous as it can be int or int64 (exact compiler output is lost, unfortunately).

            Assignee:
            Philip Race
            Reporter:
            Artem Ananiev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: