<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to bugs</title><link href="https://sourceforge.net/p/j2cstranslator/bugs/" rel="alternate"/><link href="https://sourceforge.net/p/j2cstranslator/bugs/feed.atom" rel="self"/><id>https://sourceforge.net/p/j2cstranslator/bugs/</id><updated>2011-05-03T15:25:18Z</updated><subtitle>Recent changes to bugs</subtitle><entry><title>"interfaces cannot declare fields" error</title><link href="https://sourceforge.net/p/j2cstranslator/bugs/125/" rel="alternate"/><published>2011-05-03T15:25:18Z</published><updated>2011-05-03T15:25:18Z</updated><author><name>david.papirov</name><uri>https://sourceforge.net/u/davidpapirov/</uri></author><id>https://sourceforge.net5d3934b06ec2a97c05a218d231c511ffe9d399ea</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;public interface IPC&lt;br /&gt;
{&lt;br /&gt;
public int IPC_ERROR_SUCCESS = 0,   IPC_ERROR_GENERAL = -1;&lt;br /&gt;
public void setListener(IPCListener listener);&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;translated as is to&lt;/p&gt;
&lt;p&gt;public interface IPC {&lt;br /&gt;
/// &amp;lt;summary&amp;gt;&lt;br /&gt;
/// errors&lt;br /&gt;
/// &amp;lt;/summary&amp;gt;&lt;br /&gt;
///&lt;br /&gt;
int IPC_ERROR_SUCCESS = 0, IPC_ERROR_GENERAL = -1;&lt;/p&gt;
&lt;p&gt;/// &amp;lt;summary&amp;gt;&lt;br /&gt;
/// sets a listener&lt;br /&gt;
/// &amp;lt;/summary&amp;gt;&lt;br /&gt;
///&lt;br /&gt;
/// &amp;lt;param name="listener"&amp;gt;&amp;lt;/param&amp;gt;&lt;br /&gt;
void SetListener(IPCListener listener);&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;So when compiling on VS2010 I have an error "interfaces cannot declare fields".&lt;/p&gt;
&lt;p&gt;How to overcome? (I must NOT change the java source)&lt;/p&gt;
&lt;p&gt;Thank you very much!!&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Match throw an NRE with J2CsMapping 1.3.40.5</title><link href="https://sourceforge.net/p/j2cstranslator/bugs/124/" rel="alternate"/><published>2010-12-20T15:07:57Z</published><updated>2010-12-20T15:07:57Z</updated><author><name>Alexandre FAU</name><uri>https://sourceforge.net/u/alexandrefau/</uri></author><id>https://sourceforge.net79ca65bf49b976563f3dc5cd9e3dd248ccb1d3ec</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;With the latest assembly that code :&lt;br /&gt;
String input = "2010-11-10 22:10:20 GMT";&lt;br /&gt;
Pattern pattern = Pattern.Compile("[0-9]{4}-[0-9]{2}-[0-9]{2} "&lt;br /&gt;
+ "[0-9]{2}:[0-9]{2}:[0-9]{2} GMT|[0-9]{12}|[0-9]{8}");&lt;/p&gt;
&lt;p&gt;Matcher matcher = pattern.Matcher(input);&lt;/p&gt;
&lt;p&gt;Throw an excpetion.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>ArrayListIterator contains not implemented methods</title><link href="https://sourceforge.net/p/j2cstranslator/bugs/123/" rel="alternate"/><published>2010-12-13T07:33:06Z</published><updated>2010-12-13T07:33:06Z</updated><author><name>Evgeny Filatov</name><uri>https://sourceforge.net/u/evgenybf/</uri></author><id>https://sourceforge.netee5b55621245a3e20f80c2c57771837f49d1c0ee</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;E.g.&lt;br /&gt;
ILOG.J2CsMapping.Collections.Generics.ArrayListIterator&amp;lt;T&amp;gt; &lt;/p&gt;
&lt;p&gt;public void Add(T o)&lt;br /&gt;
{&lt;br /&gt;
throw new InvalidOperationException();&lt;br /&gt;
}&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Mapping for List&lt;E&gt; java.lang.List.subList(int,int)</title><link href="https://sourceforge.net/p/j2cstranslator/bugs/122/" rel="alternate"/><published>2010-12-08T10:54:35Z</published><updated>2010-12-08T10:54:35Z</updated><author><name>bvasilenko</name><uri>https://sourceforge.net/u/bvasilenko/</uri></author><id>https://sourceforge.net88323041900308a53b5d261eca39466af4a7b71e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Please consider adding a mapping for generic version of  java.lang.List.subList(int,int) which may look like:&lt;/p&gt;
&lt;p&gt;&amp;lt;method signature="(int,int)" name="subList"&amp;gt;&lt;br /&gt;
&amp;lt;target&amp;gt;&lt;br /&gt;
&amp;lt;format&amp;gt;&lt;br /&gt;
&amp;lt;![CDATA[ILOG.J2CsMapping.Collections.Generics.Collections.SubList(@0,@1,@2)]]&amp;gt;&lt;br /&gt;
&amp;lt;/format&amp;gt;&lt;br /&gt;
&amp;lt;/target&amp;gt;&lt;br /&gt;
&amp;lt;/method&amp;gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>StringUtil.Matches() returns wrong value</title><link href="https://sourceforge.net/p/j2cstranslator/bugs/121/" rel="alternate"/><published>2010-11-30T13:10:45Z</published><updated>2010-11-30T13:10:45Z</updated><author><name>Evgeny Filatov</name><uri>https://sourceforge.net/u/evgenybf/</uri></author><id>https://sourceforge.netdb8db61b3e5023e6b88bdaca25a4b02efcbd6cfe</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;E.g.&lt;br /&gt;
String value = "X'101'";&lt;br /&gt;
value.matches("\\d+") - returns false&lt;/p&gt;
&lt;p&gt;but translated C# code&lt;br /&gt;
ILOG.J2CsMapping.Util.StringUtil.Matches(value,"\\d*X") - returns true&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Bug in mapping java.util.Random</title><link href="https://sourceforge.net/p/j2cstranslator/bugs/120/" rel="alternate"/><published>2010-11-24T09:59:37Z</published><updated>2010-11-24T09:59:37Z</updated><author><name>Andrew Ushakov</name><uri>https://sourceforge.net/u/a-ushakov/</uri></author><id>https://sourceforge.net5275d284c340d9f3228a05a43cb31bd1ba2848d5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Missing () after "Next" method name in "format" section for "java.util.Random". Should be:&lt;/p&gt;
&lt;p&gt;&amp;lt;method signature="(int)" name="nextInt"&amp;gt;&lt;br /&gt;
&amp;lt;target&amp;gt;&lt;br /&gt;
&amp;lt;format&amp;gt;&lt;br /&gt;
&amp;lt;![CDATA[@0.Next()]]&amp;gt;&lt;br /&gt;
&amp;lt;/format&amp;gt;&lt;br /&gt;
&amp;lt;/target&amp;gt;&lt;br /&gt;
&amp;lt;/method&amp;gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Collections.Arrays.Equal strange behavior</title><link href="https://sourceforge.net/p/j2cstranslator/bugs/119/" rel="alternate"/><published>2010-11-22T13:24:43Z</published><updated>2010-11-22T13:24:43Z</updated><author><name>Denis Sukharev</name><uri>https://sourceforge.net/u/dsukharev/</uri></author><id>https://sourceforge.net3ca6a7c9e7f2679f0b21c6eb305b2440e7547a3f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;ILOG.J2CsMapping.Collections.Arrays.Equal(byte[] a1, byte[] a2) method throws an exception if the values of the two byte arrays are not equal. In Java Arrays.equals() method just return false in such situation.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Mapping for java.lang.String.split(String regex)</title><link href="https://sourceforge.net/p/j2cstranslator/bugs/118/" rel="alternate"/><published>2010-11-19T09:25:03Z</published><updated>2010-11-19T09:25:03Z</updated><author><name>Denis Sukharev</name><uri>https://sourceforge.net/u/dsukharev/</uri></author><id>https://sourceforge.netfe4d592f476e9211e75ef25aaa4888cb60b144ec</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Need to fix String.split(String regex) and String.split(String regex, int limit) mapping rules. System.String does not split by regex. Replacement is necessary, for example - Regex.split ().&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Bug in mapping java.util.TreeSet&lt;&gt;</title><link href="https://sourceforge.net/p/j2cstranslator/bugs/117/" rel="alternate"/><published>2010-11-17T14:05:42Z</published><updated>2010-11-17T14:05:42Z</updated><author><name>Andrew Ushakov</name><uri>https://sourceforge.net/u/a-ushakov/</uri></author><id>https://sourceforge.net997fba81385a58d746ec68fafb39eac28f8d7305</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Existing mapping cause ambiguity between 'ILOG.J2CsMapping.Collections.Generics.SortedSet' and 'System.Collections.Generic.SortedSet'.&lt;br /&gt;
I suggest to fix it by just adding full class names in CDATA sections (2 places):&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;class name="TreeSet" typeParameters="%1" generics="true"&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;!-- method TreeSet() --&amp;gt;&lt;br /&gt;
&amp;lt;constructor signature="()"&amp;gt;&lt;br /&gt;
&amp;lt;target&amp;gt;&lt;br /&gt;
&amp;lt;format&amp;gt;&lt;br /&gt;
&amp;lt;![CDATA[new ILOG.J2CsMapping.Collections.Generics.SortedSet&amp;lt;%1&amp;gt;()]]&amp;gt;&lt;br /&gt;
&amp;lt;/format&amp;gt;&lt;br /&gt;
&amp;lt;/target&amp;gt;&lt;br /&gt;
&amp;lt;/constructor&amp;gt;&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;!-- method TreeSet(java.util.Comparator&amp;amp;lt;? super E&amp;amp;gt;) --&amp;gt;&lt;br /&gt;
&amp;lt;constructor signature="(java.util.Comparator&amp;amp;lt;? super E&amp;amp;gt;)"&amp;gt;&lt;br /&gt;
&amp;lt;target&amp;gt;&lt;br /&gt;
&amp;lt;format&amp;gt;&lt;br /&gt;
&amp;lt;![CDATA[new ILOG.J2CsMapping.Collections.Generics.SortedSet&amp;lt;%1&amp;gt;(@1)]]&amp;gt;&lt;br /&gt;
&amp;lt;/format&amp;gt;&lt;br /&gt;
&amp;lt;/target&amp;gt;&lt;br /&gt;
&amp;lt;/constructor&amp;gt;&lt;br /&gt;
&amp;lt;/class&amp;gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Bug in mapping generic List.listIterator</title><link href="https://sourceforge.net/p/j2cstranslator/bugs/116/" rel="alternate"/><published>2010-11-17T05:44:33Z</published><updated>2010-11-17T05:44:33Z</updated><author><name>Alexey Udalykh</name><uri>https://sourceforge.net/u/audalykh/</uri></author><id>https://sourceforge.net6d61b91de831423e8c605cb9bd3c0b45c85de56c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Seems that generics.mappingml has a bug related to mapping List.listIterator().&lt;br /&gt;
Notw it looks like:&lt;br /&gt;
&amp;lt;class name="List" typeParameters="%1" generics="true"&amp;gt;&lt;br /&gt;
&amp;lt;target packageName="System.Collections.Generic" name="IList" typeParameters="%1" /&amp;gt; &lt;br /&gt;
...........&lt;br /&gt;
&amp;lt;method signature="()" name="listIterator"&amp;gt;&lt;br /&gt;
&amp;lt;target&amp;gt;&lt;br /&gt;
&amp;lt;format&amp;gt;&lt;br /&gt;
&amp;lt;![CDATA[ new ILOG.J2CsMapping.Collections.ArrayListIterator(@0) ]]&amp;gt; &lt;br /&gt;
&amp;lt;/format&amp;gt;&lt;br /&gt;
&amp;lt;/target&amp;gt;&lt;br /&gt;
&amp;lt;/method&amp;gt;&lt;/p&gt;
&lt;p&gt;I have a feeling that this mapping should look something like:&lt;/p&gt;
&lt;p&gt;&amp;lt;![CDATA[ new ILOG.J2CsMapping.Collections.Generics.ArrayListIterator&amp;lt;%1&amp;gt;(@0) ]]&amp;gt;&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>