src/share/classes/com/sun/tools/javac/comp/Check.java

changeset 2904
14891e981af0
parent 2717
11743872bfc9
child 3295
859dc787b52b
equal deleted inserted replaced
2903:a44348b50794 2904:14891e981af0
1811 */ 1811 */
1812 public boolean checkCompatibleAbstracts(DiagnosticPosition pos, 1812 public boolean checkCompatibleAbstracts(DiagnosticPosition pos,
1813 Type t1, 1813 Type t1,
1814 Type t2) { 1814 Type t2) {
1815 return checkCompatibleAbstracts(pos, t1, t2, 1815 return checkCompatibleAbstracts(pos, t1, t2,
1816 types.makeCompoundType(t1, t2)); 1816 types.makeIntersectionType(t1, t2));
1817 } 1817 }
1818 1818
1819 public boolean checkCompatibleAbstracts(DiagnosticPosition pos, 1819 public boolean checkCompatibleAbstracts(DiagnosticPosition pos,
1820 Type t1, 1820 Type t1,
1821 Type t2, 1821 Type t2,

mercurial