1 /* |
1 /* |
2 * Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1999, 2012, 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 |
124 public final Type stringBufferType; |
124 public final Type stringBufferType; |
125 public final Type stringBuilderType; |
125 public final Type stringBuilderType; |
126 public final Type cloneableType; |
126 public final Type cloneableType; |
127 public final Type serializableType; |
127 public final Type serializableType; |
128 public final Type methodHandleType; |
128 public final Type methodHandleType; |
|
129 public final Type nativeHeaderType; |
129 public final Type polymorphicSignatureType; |
130 public final Type polymorphicSignatureType; |
130 public final Type throwableType; |
131 public final Type throwableType; |
131 public final Type errorType; |
132 public final Type errorType; |
132 public final Type interruptedExceptionType; |
133 public final Type interruptedExceptionType; |
133 public final Type illegalArgumentExceptionType; |
134 public final Type illegalArgumentExceptionType; |
475 names.close, |
476 names.close, |
476 new MethodType(List.<Type>nil(), voidType, |
477 new MethodType(List.<Type>nil(), voidType, |
477 List.of(exceptionType), methodClass), |
478 List.of(exceptionType), methodClass), |
478 autoCloseableType.tsym); |
479 autoCloseableType.tsym); |
479 trustMeType = enterClass("java.lang.SafeVarargs"); |
480 trustMeType = enterClass("java.lang.SafeVarargs"); |
|
481 nativeHeaderType = enterClass("javax.tools.annotation.GenerateNativeHeader"); |
480 |
482 |
481 synthesizeEmptyInterfaceIfMissing(autoCloseableType); |
483 synthesizeEmptyInterfaceIfMissing(autoCloseableType); |
482 synthesizeEmptyInterfaceIfMissing(cloneableType); |
484 synthesizeEmptyInterfaceIfMissing(cloneableType); |
483 synthesizeEmptyInterfaceIfMissing(serializableType); |
485 synthesizeEmptyInterfaceIfMissing(serializableType); |
484 synthesizeEmptyInterfaceIfMissing(polymorphicSignatureType); |
486 synthesizeEmptyInterfaceIfMissing(polymorphicSignatureType); |