fix @Partial for classes with generics

This commit is contained in:
Volker Berlin 2023-05-01 19:24:40 +02:00
parent 57616e2a56
commit b37924ce5b
No known key found for this signature in database
GPG Key ID: 988423EF815BE4CB

View File

@ -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;
}
}