test/tools/javac/diags/examples/WhereFreshTvar.java

changeset 1562
2154ed9ff6c8
parent 1296
cddc2c894cc6
child 2525
2eb010b6cb22
     1.1 --- a/test/tools/javac/diags/examples/WhereFreshTvar.java	Tue Feb 12 13:36:56 2013 +0000
     1.2 +++ b/test/tools/javac/diags/examples/WhereFreshTvar.java	Tue Feb 12 19:25:09 2013 +0000
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
     1.7   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.8   *
     1.9   * This code is free software; you can redistribute it and/or modify it
    1.10 @@ -24,7 +24,7 @@
    1.11  // key: compiler.misc.where.fresh.typevar
    1.12  // key: compiler.misc.where.description.typevar
    1.13  // key: compiler.err.prob.found.req
    1.14 -// key: compiler.misc.inferred.do.not.conform.to.upper.bounds
    1.15 +// key: compiler.misc.inconvertible.types
    1.16  // options: -XDdiags=where,simpleNames
    1.17  // run: simple
    1.18  
    1.19 @@ -33,5 +33,5 @@
    1.20  class WhereFreshTvar {
    1.21      <T extends List<T>> T m() {}
    1.22  
    1.23 -    { List<String> ls = m(); }
    1.24 +    { Object o = (List<String>)m(); }
    1.25  }

mercurial