all groups > visual studio .net jlca > november 2006 >
You're in the

visual studio .net jlca

group:

Driving JCLA 3.0 ?


Driving JCLA 3.0 ? olivier gattaz
11/6/2006 1:26:02 AM
visual studio .net jlca:
Hello,

Today I have a java librairy which runs on a JEE serveur and works with a
java applet.

I used the jcla 3.0 convertor to build an C# library and publish a COM
wrapper to use it from jscript logic in the browser. It runs well.

Now my goal is to have an automatic convertion process from the the java
library to the com wrapper to have only one miantenance point.

I tried a method : add some C# directives in java comments in the java
sources and uncomment them before using the jcla

But I got many errors... (see after).

How can I add some informations in the java sources to control the jcla
convertor ? Is it possible to put C# code in the java sources to help the
jcla convertor ?

Best regards

Oliver Gattaz
Chef de projet
Sage Adonix
Tél. 33(0)4 76 23 59 12

-------------------------------------------------------------
5 av Victor Hugo - 38130 Echirolles - France
Tél. 33(0)4 76 23 59 00 - Fax. 33(0)4 76 23 59 29
www.sageadonix.fr - Accélérateur d'entreprises.


The C# directives in java comments :

/**
* @author Adonix Grenoble
* @version 15w , le 19 mai. 06 à 09:32:20
*
*/
/*//LangCS
[System.Runtime.InteropServices.InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIDispatch)]
//FLangCS */
public interface IJFmtFormater
{

/*//LangCS
[System.Runtime.InteropServices.DispId(1)]
//FLangCS */
public void setNewDynamicFormat(String aCode, String aFormat, String
aComplement) throws Exception;


The C# result :

using System;
namespace com.adonix.x3.formaterJ
{

///LangCS
//UPGRADE_ISSUE: The following fragment of code could not be parsed and was
not converted.
"ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1156'"
[System.Runtime.InteropServices.InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIDispatch)]
//FLangCS */
public interface IJFmtFormater
{
///LangCS
}
//UPGRADE_ISSUE: The following fragment of code could not be parsed and was
not converted.
"ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1156'"
[System.Runtime.InteropServices.DispId(1)]
//FLangCS */

//UPGRADE_ISSUE: The following fragment of code could not be parsed and was
not converted.
"ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1156'"
public
//UPGRADE_ISSUE: The following fragment of code could not be parsed and was
not converted.
"ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?index='!DefaultContextWindowIndex'&keyword='jlca1156'"
void setNewDynamicFormat(String aCode, String aFormat, String aComplement)
throws Exception;

AddThis Social Bookmark Button