-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
7
-
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.
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.
- duplicates
-
JDK-7042566 Regression: new ambiguity between varargs method
- Closed