From b37924ce5bd8a5e73fa56e067c82ff947d2b5441 Mon Sep 17 00:00:00 2001 From: Volker Berlin Date: Mon, 1 May 2023 19:24:40 +0200 Subject: [PATCH] fix @Partial for classes with generics --- src/de/inetsoftware/classparser/MethodInfo.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/de/inetsoftware/classparser/MethodInfo.java b/src/de/inetsoftware/classparser/MethodInfo.java index a873782..5af52f0 100644 --- a/src/de/inetsoftware/classparser/MethodInfo.java +++ b/src/de/inetsoftware/classparser/MethodInfo.java @@ -1,5 +1,5 @@ /* - Copyright 2011 - 2021 Volker Berlin (i-net software) + Copyright 2011 - 2023 Volker Berlin (i-net software) Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -248,6 +248,7 @@ public class MethodInfo implements Member { */ void setDeclaringClassFile( @Nonnull String origClassName, @Nonnull ClassFile classFile ) { description = description.replace( 'L' + origClassName + ';', 'L' + classFile.getThisClass().getName() + ';' ); + description = description.replace( 'L' + origClassName + '<', 'L' + classFile.getThisClass().getName() + '<' ); // a class with additional generics information this.classFile = classFile; } }