<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 75: Incorrect decompilation of String.append(char[])</title><link>https://sourceforge.net/p/jode/bugs/75/</link><description>Recent changes to 75: Incorrect decompilation of String.append(char[])</description><atom:link href="https://sourceforge.net/p/jode/bugs/75/feed.rss" rel="self"/><language>en</language><lastBuildDate>Sun, 27 Mar 2005 01:48:42 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/jode/bugs/75/feed.rss" rel="self" type="application/rss+xml"/><item><title>Incorrect decompilation of String.append(char[])</title><link>https://sourceforge.net/p/jode/bugs/75/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;JODE successfully decompiles the following code (no runtime &lt;br /&gt;
errors). However the decompiled code is not equivalent to the original &lt;br /&gt;
code (running the decompiled code prints different results than &lt;br /&gt;
running the original code).&lt;/p&gt;
&lt;p&gt;ORIGINAL CODE:&lt;br /&gt;
public class ConcatenateCharArray {&lt;br /&gt;
public static void main(String[] args) {&lt;br /&gt;
char[] abc = new char[] {'a', 'b', 'c'};&lt;br /&gt;
System.out.println(&lt;br /&gt;
new StringBuffer().&lt;br /&gt;
append("char array: ").&lt;br /&gt;
append((Object) abc).&lt;br /&gt;
toString());&lt;br /&gt;
System.out.println(&lt;br /&gt;
new StringBuffer().&lt;br /&gt;
append("char array: ").&lt;br /&gt;
append((char[]) abc). // char[] cast important&lt;br /&gt;
toString());&lt;br /&gt;
}&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;JODE CODE:&lt;br /&gt;
public class ConcatenateCharArray&lt;br /&gt;
{&lt;br /&gt;
public static void main(String[] strings) {&lt;br /&gt;
char[] cs = { 'a', 'b', 'c' };&lt;br /&gt;
System.out.println("char array: " + (Object) cs);   // correct; &lt;br /&gt;
cast is unnecessary, however&lt;br /&gt;
System.out.println("char array: " + cs);  // INCORRECT&lt;br /&gt;
}&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;CONTACT E-MAIL:&lt;br /&gt;
"davidfstr at earthlink dot net" (to confuse spam bots - hopefully)&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Sun, 27 Mar 2005 01:48:42 -0000</pubDate><guid>https://sourceforge.nete5af2a2249e35217ec5283f49e0f021368812cfa</guid></item></channel></rss>