You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When a method containing the keyword params is invoked without any param, an exception is raised from underlying JCOBridge; the exception raised reports it is impossible to identify the Java class without any instance on .NET side.
An example is the one below:
The solution identified is to verify if any parameter is passed to the variadic argument and execute different codes: if no variadic arguments are available, the underlying method avoids the variadic argument. A proposal for the method reported in the issue is:
public Topology AddSource(stringname,paramsstring[] topics){return topics.Length ==0?IExecute<Topology>("addSource", name):IExecute<Topology>("addSource", name, topics);}
The modification will be applied on next release when JCOBridge 2.5.0 will be available. An issue will be opened in masesgroup/JNet to cover similar problems.
Describe the bug
When a method containing the keyword
params
is invoked without any param, an exception is raised from underlying JCOBridge; the exception raised reports it is impossible to identify the Java class without any instance on .NET side.An example is the one below:
KNet/src/net/KNet/ClientSide/BridgedClasses/Streams/Topology.cs
Line 45 in a8900a7
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The method with variadic argument shall be executed with or without params in the variadic argument
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
The problem seems that:
The text was updated successfully, but these errors were encountered: