提交 11c9d981 编写于 作者: V vromero

8051402: javac, type containment should accept that CAP <= ? extends CAP and CAP <= ? super CAP

Reviewed-by: mcimadamore, dlsmith
上级 818cba71
......@@ -1396,6 +1396,7 @@ public class Types {
else {
// debugContainsType(t, s);
return isSameWildcard(t, s)
|| t.type == s
|| isCaptureOf(s, t)
|| ((t.isExtendsBound() || isSubtypeNoCapture(wildLowerBound(t), cvarLowerBound(wildLowerBound(s)))) &&
// TODO: JDK-8039214, cvarUpperBound call here is incorrect
......
/*
* Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
......@@ -23,7 +23,7 @@
/*
* @test
* @bug 8007464
* @bug 8007464 8051402
* @summary Add graph inference support
* check that new wildcards inference strategy doesn't run into 7190296
* @compile TargetType61.java
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册