-
Here is the issue reference :
[Issue for empty mapping files][1]
[1]: https://sourceforge.net/tracker/?func=detail&aid=2892495&group_id=218711&atid=1044261.
2009-11-06 17:58:59 UTC by tdeverdiere
-
Yes, that was due to an empty mapping file (in fact that contains only comments). There was an error, but it was not logged. I add a low priority issue on that.
2009-11-06 17:57:02 UTC by tdeverdiere
-
Change priority and category.
2009-11-05 10:13:49 UTC by tdeverdiere
-
When a mapping file contains only comments (at the beginning), this stops translation without logging errors.
For example if a mapping file contains only:
//
// ILOG Java 2 CSharp translator mapping file for project DefaultTranslationConfig
//
This generates a TokenError. And the TokenError is not logged, and the translation is stopped. I think the translation should not stop for this...
2009-11-05 10:12:43 UTC by tdeverdiere
-
Done for the TODO list.
But this should not provide an error, isn't it ? I mean if J2CS does not find a mapping class it should not failed the translation ? because it does on my project .. so i will search the reason why.
2009-11-04 16:41:13 UTC by tdeverdiere
-
Each version of JDK brings new classes and new methods in existing class. In order for J2CS to support those changes without duplicating mapping file i suggest to add a parameter in the mapping for packages, classes, methods, fields .. that indicates the version of the JDK the new element has been introduced. The J2CS have then to compare this parameter with the version of the JDK of the project...
2009-11-04 16:26:24 UTC by tdeverdiere
-
Yepa !
2009-11-04 16:15:48 UTC by tdeverdiere
-
Hi Thomas,
I really like the second proposal.
Can you add it on the TODO list ?
Thanks,
@lex.
2009-11-04 10:11:18 UTC by alexandrefau
-
I see 2 ways to correct it :
_ we have a more flexible comparator, so for the generics it will try to use the non generics, it will then understand the following mapping for a JDK1.4 by removing the <<T>T> :
method doPrivileged(java.security.PrivilegedAction<T>) { pattern = @1.Run(); }
_ and we could add a parameter in the mapping file .. with :
method...
2009-11-03 10:49:10 UTC by tdeverdiere
-
Hello,
Basically if you don't need generics do not use useGenerics="true".
These prevente the loading of "generics.mapping" file.
I suspect that mapping to be outside generics.mapping file.
Even with that there is new API between JDK 1.4 and JDK6 so you can have other trouble.
The ideal situation will to have one set of mapping file per JDK ... But it will be a lot of...
2009-11-03 09:49:05 UTC by alexandrefau