<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Nasty JDK varargs bug?</title>
	<atom:link href="http://brian.pontarelli.com/2007/01/23/nasty-jdk-varargs-bug/feed/" rel="self" type="application/rss+xml" />
	<link>http://brian.pontarelli.com/2007/01/23/nasty-jdk-varargs-bug/</link>
	<description>Brian Pontarelli</description>
	<pubDate>Tue, 06 Jan 2009 23:56:22 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: BlogReader</title>
		<link>http://brian.pontarelli.com/2007/01/23/nasty-jdk-varargs-bug/#comment-3041</link>
		<dc:creator>BlogReader</dc:creator>
		<pubDate>Wed, 24 Jan 2007 01:33:11 +0000</pubDate>
		<guid isPermaLink="false">http://brian.pontarelli.com/2007/01/23/nasty-jdk-varargs-bug/#comment-3041</guid>
		<description>Is there a difference between arguments (String foo, String... bar) and (String... foobar)?  I'm not sure and the guidelines say to be careful with it anyway:

&lt;a href="http://java.sun.com/j2se/1.5.0/docs/guide/language/varargs.html" rel="nofollow"&gt;jdk 5 guide&lt;/a&gt;

&lt;i&gt;Generally speaking, you should not overload a varargs method, or it will be difficult for programmers to figure out which overloading gets called.&lt;/i&gt;

Here's the definitive statement on it, probably only requiring a couple of weeks of reading to figure out:


&lt;a href="http://java.sun.com/docs/books/jls/third_edition/html/expressions.html#15.12" rel="nofollow"&gt;JLS 3rd edition&lt;/a&gt;

let's hope this comes through without a preview</description>
		<content:encoded><![CDATA[<p>Is there a difference between arguments (String foo, String&#8230; bar) and (String&#8230; foobar)?  I&#8217;m not sure and the guidelines say to be careful with it anyway:</p>
<p><a href="http://java.sun.com/j2se/1.5.0/docs/guide/language/varargs.html" rel="nofollow">jdk 5 guide</a></p>
<p><i>Generally speaking, you should not overload a varargs method, or it will be difficult for programmers to figure out which overloading gets called.</i></p>
<p>Here&#8217;s the definitive statement on it, probably only requiring a couple of weeks of reading to figure out:</p>
<p><a href="http://java.sun.com/docs/books/jls/third_edition/html/expressions.html#15.12" rel="nofollow">JLS 3rd edition</a></p>
<p>let&#8217;s hope this comes through without a preview</p>
]]></content:encoded>
	</item>
</channel>
</rss>
