<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>JIRA &#8211; Alessandro Crugnola &#8211; sephiroth.it</title>
	<atom:link href="https://blog.sephiroth.it/tag/jira/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.sephiroth.it</link>
	<description>programmer by pure chance</description>
	<lastBuildDate>Thu, 24 Jun 2010 08:04:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://blog.sephiroth.it/wp-content/uploads/2019/03/cropped-sepy-big-32x32.png</url>
	<title>JIRA &#8211; Alessandro Crugnola &#8211; sephiroth.it</title>
	<link>https://blog.sephiroth.it</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Vector.splice bug</title>
		<link>https://blog.sephiroth.it/2010/01/27/vector-splice-bug/</link>
					<comments>https://blog.sephiroth.it/2010/01/27/vector-splice-bug/#comments</comments>
		
		<dc:creator><![CDATA[Alessandro Crugnola]]></dc:creator>
		<pubDate>Wed, 27 Jan 2010 08:28:54 +0000</pubDate>
				<category><![CDATA[actionscript]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[documentation]]></category>
		<category><![CDATA[JIRA]]></category>
		<category><![CDATA[opensource]]></category>
		<category><![CDATA[splice]]></category>
		<category><![CDATA[tamarin]]></category>
		<category><![CDATA[vector]]></category>
		<guid isPermaLink="false">http://blog.sephiroth.it/?p=288</guid>

					<description><![CDATA[Usually people complain about opensource projects because they lack of documentation ( that&#8217;s true most of the times.. ), but this doens&#8217;t happen only there&#8230; Today I&#8217;ve spent a lot of time trying to understand why I was so stupid because I wasn&#8217;t able to concatenate 2 vectors of int using splice. But for what &#8230; <a href="https://blog.sephiroth.it/2010/01/27/vector-splice-bug/" class="more-link">Continue reading <span class="screen-reader-text">Vector<T>.splice bug</span></a>]]></description>
										<content:encoded><![CDATA[<p>Usually people complain about opensource projects because they lack of documentation ( that&#8217;s true most of the times.. ), but this doens&#8217;t happen only there&#8230;</p>
<div>Today I&#8217;ve spent a lot of time trying to understand why I was so stupid because I wasn&#8217;t able to concatenate 2 vectors of int using splice.</div>
<div>But for what you can read from the *official* Adobe <a href="http://livedocs.adobe.com/flex/3/langref/Vector.html#splice()">documentation</a>, which says (about the third parameter for the splice method):</div>
<blockquote><p>&#8230; items &#8212; An optional list of one or more comma-separated values, **or a Vector**, to insert into the Vector at the position specified in the startIndex parameter.</p></blockquote>
<div>Ok, that&#8217;s why I didn&#8217;t know why I couldn&#8217;t manage to make it work! This simple code gives wrong results:</div>
<p>
<code lang="actionscript"><br />
var v1: Vector.<int> = new Vector.</int><int>();<br />
v1.push(1);<br />
v1.push(2);<br />
v1.push(3);<br />
v1.push(4); </p>
<p>var v2: Vector.</int><int> = new Vector.</int><int>();<br />
v2.push(100);<br />
v2.push(200);<br />
v1.splice( 1, 1, v2 );  </p>
<p>// Expected result: [1,100,200,3,4]<br />
// Actual result: [1,0,3,4] </int></code>
</p>
<p>It seems that the third parameter is being casted into int and so only &#8216;0&#8217; has been inserted into the first Vector!</p>
<p>I tried to look into Adobe jira bugbase and what I&#8217;ve found <a href="http://bugs.adobe.com/jira/browse/FP-1349">there</a> is that it was a known bug since long time and it has been also moved to the <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=472207">tamarin bugbase</a>.</p>
<p>The problem is that at the end they simply closed the bug as invalid bug because the documentation was wrong!</p>
<p>Funny</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.sephiroth.it/2010/01/27/vector-splice-bug/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
