Home : J-Integra for .NET : INFO : GenNet Generates Empty C# Code
Q48771 - INFO: GenNet Generates Empty C# Code

GenNet Generates Empty C# Code

 

Contents

  1. SYMPTOMS
  2. CAUSE
  3. 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.

Related Articles
No Related Articles Available.

Article Attachments
No Attachments Available.

Related External Links
No Related Links Available.
Help us improve this article...
What did you think of this article?

poor 
1
2
3
4
5
6
7
8
9
10

 excellent
Tell us why you rated the content this way. (optional)
 
Approved Comments...
No user comments available for this article.
Created on 6/23/2006.
Last Modified on 7/10/2006.
Last Modified by No Author Name Available!.
Article has been viewed 8508 times.
Rated 0 out of 10 based on 0 votes.
Print Article
Email Article