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

method lookup broken: varargs and autoboxing

XMLWordPrintable

    • Fix Understood
    • generic
    • generic

      A regression from 5.0 to 5.0u1, the following example no longer compiles:

      public class TestCase2 {
          {assertEqual(7, 7, "7"); }
          private void assertEqual(int i, int i1, String... s) {}
          private void assertEqual(Object i, Object i1, String... s) {}
      }

      ###@###.### 2005-04-01 03:29:33 GMT

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

              Created:
              Updated:
              Imported:
              Indexed: