<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://java.dzone.com"  xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dz="http://www.developerzone.com/modules/dz/1.0" xmlns:media="http://search.yahoo.com/mrss/">
<channel>
 <title>Javalobby - Comments for &quot;Obtaining an Array class with Java reflection&quot;</title>
 <link>http://java.dzone.com/news/obtaining-array-class-java-ref</link>
 <description>Comments for &quot;Obtaining an Array class with Java reflection&quot;</description>
 <language>en</language>
<item>
 <title>ClassLoaders aren&#039;t required</title>
 <link>http://java.dzone.com/news/obtaining-array-class-java-ref#comment-2306</link>
 <description>&lt;!--paging_filter--&gt;&lt;p&gt;ClassLoaders aren&#039;t required to support the syntax at all. I&#039;m guessing you were calling the ClassLoader directly?&lt;/p&gt;&lt;p&gt;http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6500212  &lt;/p&gt;&lt;p&gt;The three-argument form of Class.forName is the way to go if you need to use a particular ClassLoader, as I understand. (Though your reflection call works just as well, I imagine. What&#039;s a zero-length array instantiation among friends? :-) ) &lt;/p&gt;</description>
 <pubDate>Wed, 02 Apr 2008 21:17:13 -0400</pubDate>
 <dc:creator>jyrinx</dc:creator>
 <guid isPermaLink="false">comment 2306 at http://java.dzone.com</guid>
</item>
<item>
 <title>Hello Alex, I remembered</title>
 <link>http://java.dzone.com/news/obtaining-array-class-java-ref#comment-1812</link>
 <description>&lt;!--paging_filter--&gt;&lt;p&gt;Hello Alex, &lt;/p&gt;&lt;p&gt;I remembered that I read some information about reflections and arrays as you&#039;ve mentioned.I found the article that I read among sun developer documents.&lt;/p&gt;&lt;p&gt;&lt;font color=&quot;#800080&quot;&gt;&lt;a href=&quot;http://java.sun.com/developer/technicalArticles/ALT/Reflection/&quot;&gt;http://java.sun.com/developer/technicalArticles/ALT/Reflection/&lt;/a&gt; &lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font color=&quot;#000000&quot;&gt;Hope it also helps to those really wondering what you are trying to tell about java reflection,creating instances dynamically &amp;amp; arrays.&lt;/font&gt;&lt;/p&gt;&lt;p&gt;Regards,&lt;/p&gt;&lt;p&gt;ONur.&lt;/p&gt;</description>
 <pubDate>Thu, 13 Mar 2008 06:00:07 -0400</pubDate>
 <dc:creator>onur_ersen</dc:creator>
 <guid isPermaLink="false">comment 1812 at http://java.dzone.com</guid>
</item>
<item>
 <title>There is another catch with</title>
 <link>http://java.dzone.com/news/obtaining-array-class-java-ref#comment-1808</link>
 <description>&lt;!--paging_filter--&gt;There is another catch with class literals. If there are class loaders involved, you may not always get the Class instance you are looking for, because .class instance is created using caller classloader, which can be not the same during instance initialization... Though this is quite advanced case. :-)</description>
 <pubDate>Wed, 12 Mar 2008 18:11:29 -0400</pubDate>
 <dc:creator>eu</dc:creator>
 <guid isPermaLink="false">comment 1808 at http://java.dzone.com</guid>
</item>
<item>
 <title>Yep - I forgot that I</title>
 <link>http://java.dzone.com/news/obtaining-array-class-java-ref#comment-1806</link>
 <description>&lt;!--paging_filter--&gt;Yep - I forgot that I actually started with this but wanted to avoid the instance creation.</description>
 <pubDate>Wed, 12 Mar 2008 15:49:05 -0400</pubDate>
 <dc:creator>puredanger</dc:creator>
 <guid isPermaLink="false">comment 1806 at http://java.dzone.com</guid>
</item>
<item>
 <title>I&#039;ve run into ClassLoaders</title>
 <link>http://java.dzone.com/news/obtaining-array-class-java-ref#comment-1805</link>
 <description>&lt;!--paging_filter--&gt;&lt;p&gt;I&#039;ve run into ClassLoaders which didn&#039;t support using forName() like that.&lt;/p&gt;&lt;p&gt;Here&#039;s another approach:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Class&amp;lt;?&amp;gt; elementType = ...;&lt;/p&gt;&lt;p&gt;Class&amp;lt;?&amp;gt; arrayType = Array.newInstance(elementType, 0).getClass();&lt;/p&gt;</description>
 <pubDate>Wed, 12 Mar 2008 15:35:21 -0400</pubDate>
 <dc:creator>bl92550</dc:creator>
 <guid isPermaLink="false">comment 1805 at http://java.dzone.com</guid>
</item>
</channel>
</rss>
