|
Lines 13-18
Link Here
|
| 13 |
* IBM Corporation - initial API and implementation |
13 |
* IBM Corporation - initial API and implementation |
| 14 |
* Andy Clement (GoPivotal, Inc) aclement@gopivotal.com - Contributions for |
14 |
* Andy Clement (GoPivotal, Inc) aclement@gopivotal.com - Contributions for |
| 15 |
* Bug 383624 - [1.8][compiler] Revive code generation support for type annotations (from Olivier's work) |
15 |
* Bug 383624 - [1.8][compiler] Revive code generation support for type annotations (from Olivier's work) |
|
|
16 |
* Bug 409247 - [1.8][compiler] Verify error with code allocating multidimensional array |
| 16 |
*******************************************************************************/ |
17 |
*******************************************************************************/ |
| 17 |
package org.eclipse.jdt.internal.compiler.codegen; |
18 |
package org.eclipse.jdt.internal.compiler.codegen; |
| 18 |
|
19 |
|
|
Lines 60-70
public class TypeAnnotationCodeStream extends StackMapFrameCodeStream {
Link Here
|
| 60 |
TypeReference typeReference, |
61 |
TypeReference typeReference, |
| 61 |
TypeBinding typeBinding, |
62 |
TypeBinding typeBinding, |
| 62 |
int dimensions, |
63 |
int dimensions, |
|
|
64 |
int declaredDimensions, |
| 63 |
Annotation [][] annotationsOnDimensions) { |
65 |
Annotation [][] annotationsOnDimensions) { |
| 64 |
if (typeReference != null && (typeReference.bits & ASTNode.HasTypeAnnotations) != 0) { |
66 |
if (typeReference != null && (typeReference.bits & ASTNode.HasTypeAnnotations) != 0) { |
| 65 |
addAnnotationContext(typeReference, this.position, AnnotationTargetTypeConstants.NEW, annotationsOnDimensions, dimensions); |
67 |
addAnnotationContext(typeReference, this.position, AnnotationTargetTypeConstants.NEW, annotationsOnDimensions, declaredDimensions); |
| 66 |
} |
68 |
} |
| 67 |
super.multianewarray(typeReference, typeBinding, dimensions, annotationsOnDimensions); |
69 |
super.multianewarray(typeReference, typeBinding, dimensions, declaredDimensions, annotationsOnDimensions); |
| 68 |
} |
70 |
} |
| 69 |
|
71 |
|
| 70 |
public void new_(TypeReference typeReference, TypeBinding typeBinding) { |
72 |
public void new_(TypeReference typeReference, TypeBinding typeBinding) { |
| 71 |
- |
|
|