--- old/test/jdk/java/lang/reflect/Method/GenericStringTest.java 2018-10-17 12:13:17.928086864 -0700 +++ new/test/jdk/java/lang/reflect/Method/GenericStringTest.java 2018-10-17 12:13:17.760086864 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2004, 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2004, 2018, 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 5033583 6316717 6470106 8004979 8161500 8162539 + * @bug 5033583 6316717 6470106 8004979 8161500 8162539 6304578 * @summary Check toGenericString() and toString() methods * @author Joseph D. Darcy */ @@ -103,6 +103,10 @@ @ExpectedGenericString( "protected S TestClass1.method4(S,T) throws java.lang.Exception") protected S method4(S s, T t) throws Exception {return null;} + + @ExpectedGenericString( + "public static T TestClass1.max(java.util.Collection,java.util.Comparator)") + public static T max(Collection coll, Comparator comp) {return null;} } class TestClass2 { @@ -139,6 +143,10 @@ @ExpectedGenericString( "public java.util.Map TestClass2.method8()") public Map method8() {return null;} + + @ExpectedGenericString( + "public java.util.Set TestClass2.method9(V)") + public Set method9(V v) {return null;} } class Roebling implements Comparable {