]> source.dussan.org Git - aspectj.git/commitdiff
fix is checked in.
authoraclement <aclement>
Wed, 25 Jan 2006 17:37:01 +0000 (17:37 +0000)
committeraclement <aclement>
Wed, 25 Jan 2006 17:37:01 +0000 (17:37 +0000)
weaver/src/org/aspectj/weaver/bcel/BcelWorld.java

index 634895fa88fe8a031996be94c4c2dae3e9a8d177..6f5f0719ebef449dd0dda30e0be297aa18f41adb 100644 (file)
@@ -306,7 +306,7 @@ public class BcelWorld extends World implements Repository {
                ReferenceType nameTypeX = (ReferenceType)fromTheMap;
         
         if (nameTypeX == null) {               
-                   if (jc.isGeneric()) {
+                   if (jc.isGeneric() && isInJava5Mode()) {
                        nameTypeX =  ReferenceType.fromTypeX(UnresolvedType.forRawTypeName(jc.getClassName()),this);
                        ret = makeBcelObjectType(nameTypeX, jc, true);
                        ReferenceType genericRefType = new ReferenceType(