]> source.dussan.org Git - aspectj.git/commitdiff
Change value of woven class in generatedClasses map
authorUri Simchoni <urisimchoni@gmail.com>
Sun, 4 Feb 2024 10:46:03 +0000 (12:46 +0200)
committerAlexander Kriegisch <Alexander@Kriegisch.name>
Thu, 8 Feb 2024 05:17:55 +0000 (12:17 +0700)
Store the woven class and not a generated (inner) class as value of the
woven class name. This has no effect in this commit, because the value
is not consulted at all, but will be used later on.

Relates to #279.

weaver/src/main/java/org/aspectj/weaver/tools/WeavingAdaptor.java

index 2311e3dcfaf70268c01c703abaf7c8de1a7142dd..009aa7daaf51f556ce0e34acad5c93a9446bb43d 100644 (file)
@@ -922,7 +922,7 @@ public class WeavingAdaptor implements IMessageContext {
                                                }
 
                                                generatedClasses.put(className, result);
-                                               generatedClasses.put(wovenClass.getClassName(), result);
+                                               generatedClasses.put(wovenClass.getClassName(), wovenClass);
                                                generatedClassHandler.acceptClass(className, null, resultBytes);
                                        }
                                }