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

Compiler error

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: