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

Regression: new ambiguity between varargs method

    Details

    • Subcomponent:
    • Resolved In Build:
      b143
    • CPU:
      unknown, x86
    • OS:
      generic, windows_xp
    • Verification:
      Verified

      Description

      This was reported to NetBeans as bug:
      http://netbeans.org/bugzilla/show_bug.cgi?id=198366

      The problem is as follows. Consider code like this:
      ---------------------
      public class Test {

          public static void t() {
              Exception ex = null;
              error("error", ex); //ambiguous error here
          }

          public static void error(Object object, Object... params) {
          }

          public static void error(Object object, Throwable t, Object... params) {
          }
      }

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mcimadamore Maurizio Cimadamore
                Reporter:
                mcimadamore Maurizio Cimadamore
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: