- 
    
Bug
 - 
    Resolution: Fixed
 - 
    
  P2                     
     - 
    7
 
- 
        b143
 - 
        unknown, x86
 - 
        generic, windows_xp
 - 
        Verified
 
                    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) {
}
}
            
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) {
}
}
- duplicates
 - 
                    
JDK-7043984 Compiler error
-         
     - Closed
 
 -         
 
- relates to
 - 
                    
JDK-7013865 varargs: javac crashes during overload resolution with generic varargs
-         
     - Closed
 
 -         
 - 
                    
JDK-7044388 new varargs ambiguity error
-         
     - Closed
 
 -         
 - 
                    
JDK-6199075 Unambiguous varargs method calls flagged as ambiguous
-         
     - Closed
 
 -