From 47181c22c877e451b362b2a20b9cae0729f498a2 Mon Sep 17 00:00:00 2001 From: aclement Date: Mon, 4 Jul 2005 14:59:57 +0000 Subject: [PATCH] generics: one fix to ensure the class we output says 'class X implement I' rather than 'class X implements I' when the I is added via declare parents. (I should be captured in the signature attribute on the class X). Also some placeholder code added (commented out) that we'll need when trying to fix up the signature attribute when binary weaving. --- .../org/aspectj/weaver/bcel/LazyClassGen.java | 23 ++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/weaver/src/org/aspectj/weaver/bcel/LazyClassGen.java b/weaver/src/org/aspectj/weaver/bcel/LazyClassGen.java index 653da49a0..4989b6483 100644 --- a/weaver/src/org/aspectj/weaver/bcel/LazyClassGen.java +++ b/weaver/src/org/aspectj/weaver/bcel/LazyClassGen.java @@ -453,6 +453,27 @@ public final class LazyClassGen { // of attribute are confirmed to be correct. // myGen.addAttribute(getSourceDebugExtensionAttribute()); } + +// TODO asc generics, fix up the declared signature attribute (dont need this just yet...) +// Attribute sigAttribute = null; +// Attribute[] as = myGen.getAttributes(); +// for (int i = 0; i < as.length; i++) { +// Attribute attribute = as[i]; +// if (attribute.getName().equals("Signature")) sigAttribute = attribute; +// } +// if (sigAttribute!=null) { +// // Got it +// myGen.removeAttribute(sigAttribute); +// +// int nameIndex = constantPoolGen.addUtf8("Signature"); +// String data = ((Signature)sigAttribute).getSignature()+"LJ