JDK-7043984 : Compiler error
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 7
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2011-05-11
  • Updated: 2012-09-06
  • Resolved: 2011-05-12
Related Reports
Duplicate :  
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.