aboutsummaryrefslogtreecommitdiffstats
path: root/weaver
diff options
context:
space:
mode:
authoraclement <aclement>2008-04-09 22:48:28 +0000
committeraclement <aclement>2008-04-09 22:48:28 +0000
commit3179a7d863cb647e063dab11cada2240e71a76ec (patch)
treec3aada2dffc47a14882e3a2b8acb5ecef8527f65 /weaver
parente817beb188b7f4f97ea3cdec2e6cfac15905cd63 (diff)
downloadaspectj-3179a7d863cb647e063dab11cada2240e71a76ec.tar.gz
aspectj-3179a7d863cb647e063dab11cada2240e71a76ec.zip
null guards
Diffstat (limited to 'weaver')
-rw-r--r--weaver/src/org/aspectj/weaver/ArrayReferenceType.java2
-rw-r--r--weaver/src/org/aspectj/weaver/bcel/BcelGenericSignatureToTypeXConverter.java12
2 files changed, 8 insertions, 6 deletions
diff --git a/weaver/src/org/aspectj/weaver/ArrayReferenceType.java b/weaver/src/org/aspectj/weaver/ArrayReferenceType.java
index 1b42e4875..76e9ba122 100644
--- a/weaver/src/org/aspectj/weaver/ArrayReferenceType.java
+++ b/weaver/src/org/aspectj/weaver/ArrayReferenceType.java
@@ -107,7 +107,7 @@ public class ArrayReferenceType extends ReferenceType {
// Methods overridden from ReferenceType follow
public TypeVariable[] getTypeVariables() {
- if (this.typeVariables == null) {
+ if (this.typeVariables == null && componentType.getTypeVariables() != null) {
this.typeVariables = componentType.getTypeVariables();
for (int i = 0; i < this.typeVariables.length; i++) {
this.typeVariables[i].resolve(world);
diff --git a/weaver/src/org/aspectj/weaver/bcel/BcelGenericSignatureToTypeXConverter.java b/weaver/src/org/aspectj/weaver/bcel/BcelGenericSignatureToTypeXConverter.java
index 082dccfdc..e6f8829bf 100644
--- a/weaver/src/org/aspectj/weaver/bcel/BcelGenericSignatureToTypeXConverter.java
+++ b/weaver/src/org/aspectj/weaver/bcel/BcelGenericSignatureToTypeXConverter.java
@@ -255,11 +255,13 @@ public class BcelGenericSignatureToTypeXConverter {
ReferenceType rt = (ReferenceType) aTypeX;
TypeVariable[] typeVars = rt.getTypeVariables();
- for (int i = 0; i < typeVars.length; i++) {
- if (typeVars[i].getUpperBound() instanceof FTPHolder) {
- Signature.FormalTypeParameter key = ((FTPHolder) typeVars[i].getUpperBound()).ftpToBeSubstituted;
- typeVars[i].setUpperBound((UnresolvedType)typeVariableResolutions.get(key));
- }
+ if (typeVars != null) {
+ for (int i = 0; i < typeVars.length; i++) {
+ if (typeVars[i].getUpperBound() instanceof FTPHolder) {
+ Signature.FormalTypeParameter key = ((FTPHolder) typeVars[i].getUpperBound()).ftpToBeSubstituted;
+ typeVars[i].setUpperBound((UnresolvedType) typeVariableResolutions.get(key));
+ }
+ }
}
}