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

Regression: new ambiguity between varargs method

    XMLWordPrintable

Details

    • b143
    • unknown, x86
    • generic, windows_xp
    • 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

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

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: