Share

Java 2 CSharp Translator for Eclipse

Code

Programming Languages: C#, Java

License: Eclipse Public License

Repositories

browse code, statistics, last commit on 2009-11-26 svn co https://j2cstranslator.svn.sourceforge.net/svnroot/j2cstranslator j2cstranslator

Show:

What's happening?

  • Followup: RE: protected -> protected internal : not...

    I added an issue.

    2010-01-07 16:40:03 UTC by tdeverdiere

  • Translation of protected

    A method "protected internal" can be overriden in the same assembly or into another assembly. But if it is overriden into another assembly then the visibility of the method must be "protected". If the method is overriden in the same assembly then the visibility must be "protected internal". Don't ask me why. So for the translator : if you override a method whom class is in the same project th.

    2010-01-07 16:39:14 UTC by tdeverdiere

  • Followup: RE: Class conflicts in C# translation : alias

    You mean "add_using" : add_using = PropertyInfo = Com.Scort.Record.PropertyInfo; it transforms to "using PropertyInfo = Com.Scort.Record;" (removing the PropertyInfo)

    2010-01-07 15:27:44 UTC by tdeverdiere

  • protected -> protected internal : not...

    A method "protected internal" can be overriden in the same assembly or into another assembly. But if it is overriden into another assembly then the visibility of the method must be "protected". If the method is overriden in the same assembly then the visibility must be "protected internal". In the second case found this logical, but in the first case i don't know. In fact the Java...

    2010-01-07 15:10:26 UTC by tdeverdiere

  • Followup: RE: Class conflicts in C# translation : alias

    Hi Thomas and happy new year ! Have you try with the using stuff ? Is it working ? My advice on that point is : rename the class in .NET (via mapping file) if you can. All other solution are not perfect because some time your reference the class as simple name and some time with fully qualified. @lex.

    2010-01-07 14:48:23 UTC by alexandrefau

  • Class conflicts in C# translation : alias

    I have often a problem after translation. For example the class com.scort.PropertyInfo is in conflict with the class System.Reflection.PropertyInfo ... I also have the problem for two Class of my own code : com.scort.Connection com.scort.util.Connection And i don't want to rename my classes because i think it is good to keep the same name (in Java and C#). So if a class use those two...

    2010-01-07 13:50:42 UTC by tdeverdiere

  • Followup: RE: How to add the override modifier

    I found an answer to my own question. To resolve the problem, I added the tag "@modoverride" during the construction of my MethodDeclaration and the translator used it to add the override modifier later. Maybe it will help someone in the future... Benjamin.

    2010-01-04 12:53:55 UTC by bobbledople

  • How to add the override modifier

    Hi, I am trying to add the override modifier to a method signature using insert_here during the java compatible refactoring The probleme is this : I have the method : public Boolean myMethod(); On the MethodDeclaration I modify the return type name by "/* insert_here:override */ Boolean" But the generated code is publicoverrideBoolean myMethod() What should I do to keep...

    2010-01-04 12:26:23 UTC by bobbledople

  • Followup: RE: Modifiying a node by code

    I finally found a more neatly way to resolve the modifiers problem but using list rewriter in the second pass.

    2009-12-23 10:52:38 UTC by bobbledople

  • Followup: RE: Modifiying a node by code

    Yes! I finally did it! I did it in two pass. The first one during Java compatible transformation just before FillBindingTagVisitor In this pass, I do what I said previously but to ensure a fully java compliant AST, the added method is called like the one implemented plus __J2CImplicitImplementation (because of course, I can't have two methods with the same signature. Then the second pass...

    2009-12-22 13:32:37 UTC by bobbledople

Our Numbers