diff -r c35b158e2290 -r 6f0ed5a89c25 test/tools/javac/diags/examples/InvalidInferredTypes.java --- a/test/tools/javac/diags/examples/InvalidInferredTypes.java Tue Apr 10 23:19:26 2012 -0700 +++ b/test/tools/javac/diags/examples/InvalidInferredTypes.java Wed Apr 11 10:50:11 2012 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2010, 2012, 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,17 +23,15 @@ // key: compiler.err.prob.found.req.1 // key: compiler.misc.invalid.inferred.types -// key: compiler.misc.inferred.do.not.conform.to.bounds +// key: compiler.misc.inferred.do.not.conform.to.upper.bounds import java.util.*; class InvalidInferredTypes { - > T makeList() { - return null; - } + List m() { return null; } - public void test() { - List l = makeList(); + void test() { + List li = m(); } }