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

Compiler error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 7
    • tools
    • x86
    • windows_xp

      FULL PRODUCT VERSION :


      ADDITIONAL OS VERSION INFORMATION :
      Windows XP

      A DESCRIPTION OF THE PROBLEM :
      Compiles under 1.6 fails under 1.7

      REGRESSION. Last worked in version 6u25

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      public class Test
      {
          public static void main(String[] args)
          {
              new Test().error("", new Exception());
          }

          void error(Object message_, Throwable throwable_, Object... params_)
          {
          }

          void error(Object message_, Object... params_)
          {
          }
      }



      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      error: reference to error is ambiguous, both method error(Object,Throwable,Object...) in Test and method error(Object,Object...) in Test match

      REPRODUCIBILITY :
      This bug can be reproduced always.

            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: