equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2003, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
101 List<JCExpression> thrown, |
101 List<JCExpression> thrown, |
102 Env<AttrContext> env) { |
102 Env<AttrContext> env) { |
103 |
103 |
104 // Enter and attribute type parameters. |
104 // Enter and attribute type parameters. |
105 List<Type> tvars = enter.classEnter(typarams, env); |
105 List<Type> tvars = enter.classEnter(typarams, env); |
106 attr.attribTypeVariables(typarams, env); |
106 attr.attribTypeVariables(typarams, env, true); |
107 |
107 |
108 // Enter and attribute value parameters. |
108 // Enter and attribute value parameters. |
109 ListBuffer<Type> argbuf = new ListBuffer<>(); |
109 ListBuffer<Type> argbuf = new ListBuffer<>(); |
110 for (List<JCVariableDecl> l = params; l.nonEmpty(); l = l.tail) { |
110 for (List<JCVariableDecl> l = params; l.nonEmpty(); l = l.tail) { |
111 memberEnter(l.head, env); |
111 memberEnter(l.head, env); |