The problem is strictly related to listeners and comes from many things:
To avoid the problem the code shall be updated to:
Originally posted by @masesdevelopers in masesgroup/KNet#448 (comment)
The idea is to update JNetReflector to create a new class, beside each listener, which:
In case the listener interface is returned back from a method, create an extra method. beside the original one, which uses the new generated class to wrap the JVM reference.
Originally posted by @masesdevelopers in masesgroup/KNet#448 (comment)
The idea is to update JNetReflector to create a new class, beside each listener, which:
AutoInitand set it to falseBridgeClassNameand set its value to the JVM interface nameInitHandlersin listener class which enable or disable execution of https://github.com/masesgroup/KNet/blob/16b0b133224961e348885dd607ed31130fc5fa33/src/net/KNet/Generated/Org/Apache/Kafka/Common/Serialization/Serde.cs#L219, default is set to true; in the new class will be set to falseIn case the listener interface is returned back from a method, create an extra method. beside the original one, which uses the new generated class to wrap the JVM reference.