Skip to content

Commit

Permalink
Merge pull request #9 from alibaba/merge_jdk8u302-ga
Browse files Browse the repository at this point in the history
Merge jdk8u302 ga
  • Loading branch information
joeyleeeeeee97 authored Aug 12, 2021
2 parents 94d1bd6 + 1c22e5e commit cac9253
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 9 deletions.
10 changes: 10 additions & 0 deletions .hgtags
Original file line number Diff line number Diff line change
Expand Up @@ -1087,3 +1087,13 @@ cd6eb36db1bbeb5b638a577059ecf0a4c4a90b82 jdk8u292-b05
376b8ec147cf881c1139331f64c258bfc1550119 jdk8u292-b07
65614a3f68a2ef8a853f2c0505b8bbbf3a1414c3 jdk8u292-b08
eabecd4e5adc603f93dc891b6245f8164d97517d jdk8u292-b09
e096ebc661e8c12321891587c0351a66f165143c jdk8u292-b10
e096ebc661e8c12321891587c0351a66f165143c jdk8u292-ga
cd6eb36db1bbeb5b638a577059ecf0a4c4a90b82 jdk8u302-b00
55148c63b3e8b5a23d4eef33a7bab2c57396a32e jdk8u302-b01
c94d325a24672375c4767ae08bece4e7d6ea210d jdk8u302-b02
a6ea99c01d68cb35822f03104b2f7acab656312c jdk8u302-b03
a6ea4245dc1484ce52656fb981ad453cd4bb8488 jdk8u302-b04
ef5cb85b148ef2fb4711df4ac075bcf8e4836e5e jdk8u302-b05
b13b58afad1effc6726104dacdc24748e591d9d0 jdk8u302-b06
dccbf90608ebab1f656e53846774e436a9cd5d00 jdk8u302-b07
5 changes: 4 additions & 1 deletion src/share/classes/com/sun/tools/javac/comp/Check.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 1999, 2014, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1999, 2019, 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
Expand Down Expand Up @@ -2617,6 +2617,8 @@ void checkClassBounds(DiagnosticPosition pos,
if (type.isErroneous()) return;
for (List<Type> l = types.interfaces(type); l.nonEmpty(); l = l.tail) {
Type it = l.head;
if (type.hasTag(CLASS) && !it.hasTag(CLASS)) continue; // JLS 8.1.5

Type oldit = seensofar.put(it.tsym, it);
if (oldit != null) {
List<Type> oldparams = oldit.allparams();
Expand All @@ -2629,6 +2631,7 @@ void checkClassBounds(DiagnosticPosition pos,
checkClassBounds(pos, seensofar, it);
}
Type st = types.supertype(type);
if (type.hasTag(CLASS) && !st.hasTag(CLASS)) return; // JLS 8.1.4
if (st != Type.noType) checkClassBounds(pos, seensofar, st);
}

Expand Down
10 changes: 4 additions & 6 deletions test/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -139,21 +139,19 @@ endif

# Default JDK for JTREG and JCK
#
# JT_JAVA is the version of java used to run jtreg/JCK. Since it is now
# standard to execute tests in sameVM mode, it should normally be set the
# same as TESTJAVA (although not necessarily so.)
# JT_JAVA is the version of java used to run jtreg/JCK.
#
ifdef JPRT_JAVA_HOME
JT_JAVA = $(JPRT_JAVA_HOME)
else
JT_JAVA = $(SLASH_JAVA)/re/jdk/1.7.0/archive/fcs/binaries/$(PLATFORM)-$(ARCH)
JT_JAVA = $(SLASH_JAVA)/re/jdk/1.9.0/archive/fcs/binaries/$(PLATFORM)-$(ARCH)
endif

# Default JDK to test
ifdef JPRT_IMPORT_PRODUCT_HOME
TESTJAVA = $(JPRT_IMPORT_PRODUCT_HOME)
else
TESTJAVA = $(SLASH_JAVA)/re/jdk/1.7.0/promoted/latest/binaries/$(PLATFORM)-$(ARCH)
TESTJAVA = $(SLASH_JAVA)/re/jdk/1.9.0/promoted/latest/binaries/$(PLATFORM)-$(ARCH)
endif

# PRODUCT_HOME is a JPRT variable pointing to a directory containing the output from
Expand Down Expand Up @@ -186,7 +184,7 @@ endif
ifdef CONCURRENCY
JTREG_OPTIONS += -agentvm -concurrency:$(CONCURRENCY)
else
JTREG_OPTIONS += -samevm
JTREG_OPTIONS += -agentvm
endif

ifdef JCK_CONCURRENCY
Expand Down
2 changes: 1 addition & 1 deletion test/tools/javac/diags/examples/NoJavaLang.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
*/

// key: compiler.misc.fatal.err.no.java.lang
// options: -Xbootclasspath:
// options: -Xbootclasspath: -classpath .
// run: backdoor

class NoJavaLang { }
2 changes: 1 addition & 1 deletion test/tools/javac/fatalErrors/NoJavaLangTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public static void main(String[] args) throws Exception {
List<String> output = new ArrayList<>();
ToolBox.JavaToolArgs javacFailArgs =
new ToolBox.JavaToolArgs(ToolBox.Expect.FAIL)
.setOptions("-bootclasspath", ".")
.setOptions("-bootclasspath", ".", "-classpath", ".")
.setSources(noJavaLangSrc)
.setErrOutput(output);

Expand Down
12 changes: 12 additions & 0 deletions test/tools/javac/generics/ClassBoundCheckingOverflow.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/*
* @test /nodynamiccopyright/
* @bug 8214345
* @summary infinite recursion while checking super class
*
* @compile/fail/ref=ClassBoundCheckingOverflow.out -XDrawDiagnostics ClassBoundCheckingOverflow.java
*/

public class ClassBoundCheckingOverflow {
abstract class InfiniteLoop1<E extends InfiniteLoop1<E>> extends E {}
abstract class InfiniteLoop2<E extends InfiniteLoop2<E>> implements E {}
}
3 changes: 3 additions & 0 deletions test/tools/javac/generics/ClassBoundCheckingOverflow.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ClassBoundCheckingOverflow.java:10:70: compiler.err.type.found.req: (compiler.misc.type.parameter: E), (compiler.misc.type.req.class)
ClassBoundCheckingOverflow.java:11:73: compiler.err.type.found.req: (compiler.misc.type.parameter: E), (compiler.misc.type.req.class)
2 errors

0 comments on commit cac9253

Please sign in to comment.