GenNet Generates Empty C# Code |
|
Contents
- SYMPTOMS
- CAUSE
- RESOLUTION
SYMPTOMS
GenNet creates C# source code for each corresponding Java class specified, but the source code has method implementations that are "empty". You'll notice that the classes in the source code will contain methods that have similar signatures to your Java methods, but with no implementation in them. An example C# method generated by GenNet looks like this:
public void myMethod(string param1) { return null;}
CAUSE
This is the normal behaviour of GenNet. The assembly is used at compile time to give your application access to the method signatures of the Java classes it will be using. At run time, these C# methods will not be called. If your remoting configuration file is configured properly, .NET remoting will redirect the method calls to J-Integra for .NET.
RESOLUTION
This behaviour is by design.