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

REGRESSION: Some calls to Collections.binarySearch no longer compile

XMLWordPrintable

      import java.util.*;

      class T5078378 {
          public static boolean contains(List l, Object o) {
      return Collections.binarySearch(l, o) > -1;
          }
      }

      This compiles with 1.4, but not with 1.5.

            ahe Peter Ahe
            ahe Peter Ahe
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: