<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-2913369703414801920.comments</id><updated>2012-05-03T13:08:32.886-07:00</updated><category term='eclipse-con'/><category term='eclipse-sapphire-0.4'/><category term='eclipse-con-2011-europe'/><category term='ui'/><category term='eclipse-wtp'/><category term='osgi'/><category term='ant'/><category term='java-language-puzzle'/><category term='java'/><category term='eclipse-fproj'/><category term='software engineering'/><category term='coding'/><category term='eclipse'/><category term='eclipse-jdt'/><category term='facets-faq'/><category term='eclipse-sapphire'/><category term='facets'/><title type='text'>Konstantin's Blog</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://lt-rider.blogspot.com/feeds/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2913369703414801920/comments/default'/><link rel='alternate' type='text/html' href='http://lt-rider.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/2913369703414801920/comments/default?start-index=26&amp;max-results=25'/><author><name>Konstantin Komissarchik</name><uri>http://www.blogger.com/profile/12487640637368516721</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>133</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2913369703414801920.post-3456448318234964582</id><published>2012-02-28T04:05:45.496-08:00</published><updated>2012-02-28T04:05:45.496-08:00</updated><title type='text'>informative read.. I&amp;#39;m all new to JAVA develop...</title><content type='html'>informative read.. I&amp;#39;m all new to JAVA developer community and so was looking around stuff that may acquaint me with JAVA programming. I&amp;#39;m enrolled in http://www.wiziq.com/course/1617-core-java-for-beginners-icse-students and people out there asked me to surf around that may help in visualizing a larger picture worldwide.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2913369703414801920/4124677003022207631/comments/default/3456448318234964582'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2913369703414801920/4124677003022207631/comments/default/3456448318234964582'/><link rel='alternate' type='text/html' href='http://lt-rider.blogspot.com/2011/11/java-language-puzzle-3.html?showComment=1330430745496#c3456448318234964582' title=''/><author><name>Srishti Dubey</name><uri>http://www.blogger.com/profile/10722641324932314453</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh4.googleusercontent.com/-ujR1MUu2K-w/AAAAAAAAAAI/AAAAAAAAAA8/292CFNTwV4c/s512-c/photo.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://lt-rider.blogspot.com/2011/11/java-language-puzzle-3.html' ref='tag:blogger.com,1999:blog-2913369703414801920.post-4124677003022207631' source='http://www.blogger.com/feeds/2913369703414801920/posts/default/4124677003022207631' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1612758506'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.displayTime' value='February 28, 2012 4:05 AM'/></entry><entry><id>tag:blogger.com,1999:blog-2913369703414801920.post-872272455319705292</id><published>2011-12-02T01:18:30.622-08:00</published><updated>2011-12-02T01:18:30.622-08:00</updated><title type='text'>Congratulations Konstantin !

It gets even more aw...</title><content type='html'>Congratulations Konstantin !&lt;br /&gt;&lt;br /&gt;It gets even more awesome !</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2913369703414801920/6315439418709942347/comments/default/872272455319705292'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2913369703414801920/6315439418709942347/comments/default/872272455319705292'/><link rel='alternate' type='text/html' href='http://lt-rider.blogspot.com/2011/12/announcing-sapphire-04-release.html?showComment=1322817510622#c872272455319705292' title=''/><author><name>Hendy Irawan</name><uri>http://www.blogger.com/profile/05192845149798446052</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_NtoTtHZadHE/SOPBu7htv5I/AAAAAAAAAAM/PuboJ3TrIBA/S220/hendy-sitting_square.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://lt-rider.blogspot.com/2011/12/announcing-sapphire-04-release.html' ref='tag:blogger.com,1999:blog-2913369703414801920.post-6315439418709942347' source='http://www.blogger.com/feeds/2913369703414801920/posts/default/6315439418709942347' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1489431951'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.displayTime' value='December 2, 2011 1:18 AM'/></entry><entry><id>tag:blogger.com,1999:blog-2913369703414801920.post-323106735225505693</id><published>2011-11-30T06:16:07.523-08:00</published><updated>2011-11-30T06:16:07.523-08:00</updated><title type='text'>Just cast one of the 3 arguments to Object, Serial...</title><content type='html'>Just cast one of the 3 arguments to Object, Serializable or Comparable.&lt;br /&gt;&lt;br /&gt;The warning means something like &amp;#39;I can&amp;#39;t figure the type of T between these 3 possibilities&amp;#39;.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2913369703414801920/4124677003022207631/comments/default/323106735225505693'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2913369703414801920/4124677003022207631/comments/default/323106735225505693'/><link rel='alternate' type='text/html' href='http://lt-rider.blogspot.com/2011/11/java-language-puzzle-3.html?showComment=1322662567523#c323106735225505693' title=''/><author><name>shamaz</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://lt-rider.blogspot.com/2011/11/java-language-puzzle-3.html' ref='tag:blogger.com,1999:blog-2913369703414801920.post-4124677003022207631' source='http://www.blogger.com/feeds/2913369703414801920/posts/default/4124677003022207631' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-410480513'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.displayTime' value='November 30, 2011 6:16 AM'/></entry><entry><id>tag:blogger.com,1999:blog-2913369703414801920.post-6240691005789414456</id><published>2011-11-22T12:15:58.552-08:00</published><updated>2011-11-22T12:15:58.552-08:00</updated><title type='text'>Casting one of the arguments to a &amp;quot;lowest com...</title><content type='html'>Casting one of the arguments to a &amp;quot;lowest common denominator&amp;quot;, such as (Object) &amp;quot;1&amp;quot;, or (Serializable) 2 eliminates the warning.&lt;br /&gt;&lt;br /&gt;Interestingly, the JavaC compiler does not emit a warning on the given code. Compiler bug? Language ambiguity?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2913369703414801920/4124677003022207631/comments/default/6240691005789414456'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2913369703414801920/4124677003022207631/comments/default/6240691005789414456'/><link rel='alternate' type='text/html' href='http://lt-rider.blogspot.com/2011/11/java-language-puzzle-3.html?showComment=1321992958552#c6240691005789414456' title=''/><author><name>Unknown</name><uri>http://www.blogger.com/profile/08341042304529833134</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://lt-rider.blogspot.com/2011/11/java-language-puzzle-3.html' ref='tag:blogger.com,1999:blog-2913369703414801920.post-4124677003022207631' source='http://www.blogger.com/feeds/2913369703414801920/posts/default/4124677003022207631' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-163866455'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.displayTime' value='November 22, 2011 12:15 PM'/></entry><entry><id>tag:blogger.com,1999:blog-2913369703414801920.post-8995156031141165635</id><published>2011-11-21T03:38:18.251-08:00</published><updated>2011-11-21T03:38:18.251-08:00</updated><title type='text'>public static void main( String[] args )
{
 Object...</title><content type='html'>public static void main( String[] args )&lt;br /&gt;{&lt;br /&gt; Object[] items = new Object[]{&amp;quot;1&amp;quot;, 2, new BigDecimal( &amp;quot;3.5&amp;quot;)};&lt;br /&gt;    list(  items );&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;private static  List list( T... items )&lt;br /&gt;{&lt;br /&gt;    return Arrays.asList( items );&lt;br /&gt;}</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2913369703414801920/4124677003022207631/comments/default/8995156031141165635'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2913369703414801920/4124677003022207631/comments/default/8995156031141165635'/><link rel='alternate' type='text/html' href='http://lt-rider.blogspot.com/2011/11/java-language-puzzle-3.html?showComment=1321875498251#c8995156031141165635' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://lt-rider.blogspot.com/2011/11/java-language-puzzle-3.html' ref='tag:blogger.com,1999:blog-2913369703414801920.post-4124677003022207631' source='http://www.blogger.com/feeds/2913369703414801920/posts/default/4124677003022207631' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1227763070'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.displayTime' value='November 21, 2011 3:38 AM'/></entry><entry><id>tag:blogger.com,1999:blog-2913369703414801920.post-3843690321758380466</id><published>2011-11-21T01:16:43.806-08:00</published><updated>2011-11-21T01:16:43.806-08:00</updated><title type='text'>You should choose a type.  I&amp;#39;m not sure you ca...</title><content type='html'>You should choose a type.  I&amp;#39;m not sure you can do that without class qualification:&lt;br /&gt;&lt;br /&gt;  JavaLanguagePuzzle3.&amp;lt;Object&amp;gt;list( &amp;quot;1&amp;quot;, 2, new BigDecimal( &amp;quot;3.5&amp;quot; ) );&lt;br /&gt;&lt;br /&gt;You can choose any common super type this way.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2913369703414801920/4124677003022207631/comments/default/3843690321758380466'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2913369703414801920/4124677003022207631/comments/default/3843690321758380466'/><link rel='alternate' type='text/html' href='http://lt-rider.blogspot.com/2011/11/java-language-puzzle-3.html?showComment=1321867003806#c3843690321758380466' title=''/><author><name>Ed Merks</name><uri>http://www.blogger.com/profile/05000982591510437551</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='27' height='32' src='http://4.bp.blogspot.com/_rFZqMGOSYY8/TR9wy0tTi1I/AAAAAAAABu0/8awVxQYvcjs/S220/Ed2010.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://lt-rider.blogspot.com/2011/11/java-language-puzzle-3.html' ref='tag:blogger.com,1999:blog-2913369703414801920.post-4124677003022207631' source='http://www.blogger.com/feeds/2913369703414801920/posts/default/4124677003022207631' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1558633836'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.displayTime' value='November 21, 2011 1:16 AM'/></entry><entry><id>tag:blogger.com,1999:blog-2913369703414801920.post-3379957676699675884</id><published>2011-11-20T13:58:21.190-08:00</published><updated>2011-11-20T13:58:21.190-08:00</updated><title type='text'>Remove the Generic Type &amp;lt;T&amp;gt;, and replace wit...</title><content type='html'>Remove the Generic Type &amp;lt;T&amp;gt;, and replace with a common supertype - in this case it would have to be &amp;quot;Object&amp;quot;:&lt;br /&gt;&lt;br /&gt;private static List&amp;lt;Object&amp;gt; list(Object... items )&lt;br /&gt;    {&lt;br /&gt;        return Arrays.asList( items );&lt;br /&gt;    }</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2913369703414801920/4124677003022207631/comments/default/3379957676699675884'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2913369703414801920/4124677003022207631/comments/default/3379957676699675884'/><link rel='alternate' type='text/html' href='http://lt-rider.blogspot.com/2011/11/java-language-puzzle-3.html?showComment=1321826301190#c3379957676699675884' title=''/><author><name>Brendan</name><uri>http://www.blogger.com/profile/02422859704501070399</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://lt-rider.blogspot.com/2011/11/java-language-puzzle-3.html' ref='tag:blogger.com,1999:blog-2913369703414801920.post-4124677003022207631' source='http://www.blogger.com/feeds/2913369703414801920/posts/default/4124677003022207631' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1808149252'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.displayTime' value='November 20, 2011 1:58 PM'/></entry><entry><id>tag:blogger.com,1999:blog-2913369703414801920.post-7799051425590736045</id><published>2011-10-08T11:36:14.354-07:00</published><updated>2011-10-08T11:36:14.354-07:00</updated><title type='text'>I love it!

Congratulations!!</title><content type='html'>I love it!&lt;br /&gt;&lt;br /&gt;Congratulations!!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2913369703414801920/6828703229999721753/comments/default/7799051425590736045'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2913369703414801920/6828703229999721753/comments/default/7799051425590736045'/><link rel='alternate' type='text/html' href='http://lt-rider.blogspot.com/2011/10/announcing-sapphire-031-release.html?showComment=1318098974354#c7799051425590736045' title=''/><author><name>Hendy Irawan</name><uri>http://www.blogger.com/profile/05192845149798446052</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://2.bp.blogspot.com/_NtoTtHZadHE/SOPBu7htv5I/AAAAAAAAAAM/PuboJ3TrIBA/S220/hendy-sitting_square.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://lt-rider.blogspot.com/2011/10/announcing-sapphire-031-release.html' ref='tag:blogger.com,1999:blog-2913369703414801920.post-6828703229999721753' source='http://www.blogger.com/feeds/2913369703414801920/posts/default/6828703229999721753' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1489431951'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.displayTime' value='October 8, 2011 11:36 AM'/></entry><entry><id>tag:blogger.com,1999:blog-2913369703414801920.post-4714218522607546756</id><published>2011-06-27T20:33:23.788-07:00</published><updated>2011-06-27T20:33:23.788-07:00</updated><title type='text'>I just verified that my guess was correct. The fol...</title><content type='html'>I just verified that my guess was correct. The following works:&lt;br /&gt;&lt;br /&gt;Entity entity = Entity.class.newInstance();&lt;br /&gt;Factory factory = Factory.class.getConstructor(Entity.class).newInstance(entity);&lt;br /&gt;Entity otherEntity = factory.create();</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2913369703414801920/934339479004260218/comments/default/4714218522607546756'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2913369703414801920/934339479004260218/comments/default/4714218522607546756'/><link rel='alternate' type='text/html' href='http://lt-rider.blogspot.com/2011/06/java-puzzle-2.html?showComment=1309232003788#c4714218522607546756' title=''/><author><name>Robert Konigsberg</name><uri>http://www.blogger.com/profile/04616226121996611123</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://lt-rider.blogspot.com/2011/06/java-puzzle-2.html' ref='tag:blogger.com,1999:blog-2913369703414801920.post-934339479004260218' source='http://www.blogger.com/feeds/2913369703414801920/posts/default/934339479004260218' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-197590860'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.displayTime' value='June 27, 2011 8:33 PM'/></entry><entry><id>tag:blogger.com,1999:blog-2913369703414801920.post-513173023753183060</id><published>2011-06-27T15:57:41.972-07:00</published><updated>2011-06-27T15:57:41.972-07:00</updated><title type='text'>Add the &amp;quot;static&amp;quot; modifier to the inner F...</title><content type='html'>Add the &amp;quot;static&amp;quot; modifier to the inner Factory class.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2913369703414801920/934339479004260218/comments/default/513173023753183060'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2913369703414801920/934339479004260218/comments/default/513173023753183060'/><link rel='alternate' type='text/html' href='http://lt-rider.blogspot.com/2011/06/java-puzzle-2.html?showComment=1309215461972#c513173023753183060' title=''/><author><name>Brendan</name><uri>http://www.blogger.com/profile/02422859704501070399</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://lt-rider.blogspot.com/2011/06/java-puzzle-2.html' ref='tag:blogger.com,1999:blog-2913369703414801920.post-934339479004260218' source='http://www.blogger.com/feeds/2913369703414801920/posts/default/934339479004260218' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1808149252'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.displayTime' value='June 27, 2011 3:57 PM'/></entry><entry><id>tag:blogger.com,1999:blog-2913369703414801920.post-7057479973899154017</id><published>2011-06-27T15:13:51.898-07:00</published><updated>2011-06-27T15:13:51.898-07:00</updated><title type='text'>Make the Factory class static so that you don&amp;#39;...</title><content type='html'>Make the Factory class static so that you don&amp;#39;t need an instance of Entity to create it.&lt;br /&gt;&lt;br /&gt;public static class Factory</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2913369703414801920/934339479004260218/comments/default/7057479973899154017'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2913369703414801920/934339479004260218/comments/default/7057479973899154017'/><link rel='alternate' type='text/html' href='http://lt-rider.blogspot.com/2011/06/java-puzzle-2.html?showComment=1309212831898#c7057479973899154017' title=''/><author><name>joakime</name><uri>http://www.blogger.com/profile/11919226774248421689</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://lt-rider.blogspot.com/2011/06/java-puzzle-2.html' ref='tag:blogger.com,1999:blog-2913369703414801920.post-934339479004260218' source='http://www.blogger.com/feeds/2913369703414801920/posts/default/934339479004260218' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1355990317'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.displayTime' value='June 27, 2011 3:13 PM'/></entry><entry><id>tag:blogger.com,1999:blog-2913369703414801920.post-285272520700216770</id><published>2011-06-27T15:01:03.326-07:00</published><updated>2011-06-27T15:01:03.326-07:00</updated><title type='text'>InstanciationException is thrown because Factory i...</title><content type='html'>InstanciationException is thrown because Factory is a inner class of Entity and therefore it can only be instanciated inside a non-static method of Entity. That code can be fixed by converting Factory to a static class.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2913369703414801920/934339479004260218/comments/default/285272520700216770'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2913369703414801920/934339479004260218/comments/default/285272520700216770'/><link rel='alternate' type='text/html' href='http://lt-rider.blogspot.com/2011/06/java-puzzle-2.html?showComment=1309212063326#c285272520700216770' title=''/><author><name>Rui Figueira</name><uri>http://www.blogger.com/profile/12262110061460891054</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://lt-rider.blogspot.com/2011/06/java-puzzle-2.html' ref='tag:blogger.com,1999:blog-2913369703414801920.post-934339479004260218' source='http://www.blogger.com/feeds/2913369703414801920/posts/default/934339479004260218' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1736559819'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.displayTime' value='June 27, 2011 3:01 PM'/></entry><entry><id>tag:blogger.com,1999:blog-2913369703414801920.post-5267040288473746037</id><published>2011-06-27T14:49:34.509-07:00</published><updated>2011-06-27T14:49:34.509-07:00</updated><title type='text'>Factory isn&amp;#39;t a static class, needs an instanc...</title><content type='html'>Factory isn&amp;#39;t a static class, needs an instance of Entity in order to instantiate it. Possibly make it static, possibly use Constructor.newInstance() and supply an Entity.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2913369703414801920/934339479004260218/comments/default/5267040288473746037'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2913369703414801920/934339479004260218/comments/default/5267040288473746037'/><link rel='alternate' type='text/html' href='http://lt-rider.blogspot.com/2011/06/java-puzzle-2.html?showComment=1309211374509#c5267040288473746037' title=''/><author><name>Robert Konigsberg</name><uri>http://www.blogger.com/profile/04616226121996611123</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://lt-rider.blogspot.com/2011/06/java-puzzle-2.html' ref='tag:blogger.com,1999:blog-2913369703414801920.post-934339479004260218' source='http://www.blogger.com/feeds/2913369703414801920/posts/default/934339479004260218' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-197590860'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.displayTime' value='June 27, 2011 2:49 PM'/></entry><entry><id>tag:blogger.com,1999:blog-2913369703414801920.post-8059411384197916003</id><published>2011-06-27T14:31:20.612-07:00</published><updated>2011-06-27T14:31:20.612-07:00</updated><title type='text'>non-static inner classes need to be instanced from...</title><content type='html'>non-static inner classes need to be instanced from an instance of their outer class, since they keep a reference to the outer class in a compiler-generated field called &amp;quot;outer&amp;quot;.&lt;br /&gt;In this case, you could either:&lt;br /&gt;&lt;br /&gt;- Create a Factory instance from an Entity object: new Entity().new Factory()&lt;br /&gt;- change the inner class to be static, so it doesn&amp;#39;t require an instance of the outer class to be instantiated</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2913369703414801920/934339479004260218/comments/default/8059411384197916003'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2913369703414801920/934339479004260218/comments/default/8059411384197916003'/><link rel='alternate' type='text/html' href='http://lt-rider.blogspot.com/2011/06/java-puzzle-2.html?showComment=1309210280612#c8059411384197916003' title=''/><author><name>CK</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://lt-rider.blogspot.com/2011/06/java-puzzle-2.html' ref='tag:blogger.com,1999:blog-2913369703414801920.post-934339479004260218' source='http://www.blogger.com/feeds/2913369703414801920/posts/default/934339479004260218' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-19685577'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.displayTime' value='June 27, 2011 2:31 PM'/></entry><entry><id>tag:blogger.com,1999:blog-2913369703414801920.post-3316927861477244320</id><published>2011-06-27T13:34:51.777-07:00</published><updated>2011-06-27T13:34:51.777-07:00</updated><title type='text'>package puzzle;

public class Entity
{
    private...</title><content type='html'>package puzzle;&lt;br /&gt;&lt;br /&gt;public class Entity&lt;br /&gt;{&lt;br /&gt;    private Entity()&lt;br /&gt;    {&lt;br /&gt;    }&lt;br /&gt;    &lt;br /&gt;    public static class Factory&lt;br /&gt;    {&lt;br /&gt;        public Entity create()&lt;br /&gt;        {&lt;br /&gt;            return new Entity();&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;    &lt;br /&gt;    public static void main( String[] args ) throws Exception&lt;br /&gt;    {&lt;br /&gt;        Factory.class.newInstance();&lt;br /&gt;    }&lt;br /&gt;}</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2913369703414801920/934339479004260218/comments/default/3316927861477244320'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2913369703414801920/934339479004260218/comments/default/3316927861477244320'/><link rel='alternate' type='text/html' href='http://lt-rider.blogspot.com/2011/06/java-puzzle-2.html?showComment=1309206891777#c3316927861477244320' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://lt-rider.blogspot.com/2011/06/java-puzzle-2.html' ref='tag:blogger.com,1999:blog-2913369703414801920.post-934339479004260218' source='http://www.blogger.com/feeds/2913369703414801920/posts/default/934339479004260218' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-119626785'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.displayTime' value='June 27, 2011 1:34 PM'/></entry><entry><id>tag:blogger.com,1999:blog-2913369703414801920.post-572196002139458076</id><published>2011-06-27T13:26:45.462-07:00</published><updated>2011-06-27T13:26:45.462-07:00</updated><title type='text'>It&amp;#39;s because there is no Enclosing instance of...</title><content type='html'>It&amp;#39;s because there is no Enclosing instance of type Entity. You can make Factory static, but that might not be what&amp;#39;s desired.&lt;br /&gt;&lt;br /&gt;If you replace Factory.class.newInstance() with new Factory(), you can see this as a compile time error.  You can use new Entity().new Factory().&lt;br /&gt;&lt;br /&gt;If you want to leave Factory as a non-static inner class and still use reflection to instantiate it... well I&amp;#39;m not sure how to do that... looking forward to the answer.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2913369703414801920/934339479004260218/comments/default/572196002139458076'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2913369703414801920/934339479004260218/comments/default/572196002139458076'/><link rel='alternate' type='text/html' href='http://lt-rider.blogspot.com/2011/06/java-puzzle-2.html?showComment=1309206405462#c572196002139458076' title=''/><author><name>Ian Bull</name><uri>http://www.blogger.com/profile/02668098567506210626</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_RIwhvjncU4c/Su5ngebhzaI/AAAAAAAACqs/4Fl8yC94IiA/s1600-R/77e02a3c8c665155ad1acaac8c2742e0%3Fd%3D404'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://lt-rider.blogspot.com/2011/06/java-puzzle-2.html' ref='tag:blogger.com,1999:blog-2913369703414801920.post-934339479004260218' source='http://www.blogger.com/feeds/2913369703414801920/posts/default/934339479004260218' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-982109650'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.displayTime' value='June 27, 2011 1:26 PM'/></entry><entry><id>tag:blogger.com,1999:blog-2913369703414801920.post-1714788607604004952</id><published>2011-06-27T13:12:39.382-07:00</published><updated>2011-06-27T13:12:39.382-07:00</updated><title type='text'>Creating an instance of Factory requires an enclos...</title><content type='html'>Creating an instance of Factory requires an enclosing instance of Entity.&lt;br /&gt;&lt;br /&gt;Perhaps the intent was to make Factory a static inner class?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2913369703414801920/934339479004260218/comments/default/1714788607604004952'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2913369703414801920/934339479004260218/comments/default/1714788607604004952'/><link rel='alternate' type='text/html' href='http://lt-rider.blogspot.com/2011/06/java-puzzle-2.html?showComment=1309205559382#c1714788607604004952' title=''/><author><name>Scott Stanchfield</name><uri>http://www.blogger.com/profile/08841814132604559905</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://lt-rider.blogspot.com/2011/06/java-puzzle-2.html' ref='tag:blogger.com,1999:blog-2913369703414801920.post-934339479004260218' source='http://www.blogger.com/feeds/2913369703414801920/posts/default/934339479004260218' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-2132458146'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.displayTime' value='June 27, 2011 1:12 PM'/></entry><entry><id>tag:blogger.com,1999:blog-2913369703414801920.post-4403139286629910594</id><published>2011-06-27T13:04:22.813-07:00</published><updated>2011-06-27T13:04:22.813-07:00</updated><title type='text'>My guess: As the factory class is a non-static inn...</title><content type='html'>My guess: As the factory class is a non-static inner class, it needs an instance of the outer class to exist. The main-method doesn&amp;#39;t create an entity object. If you want to create a Factory instance in a &amp;quot;regular&amp;quot; way, by calling the constructor, you would need an Entity object and call the Factory constructor from there (e.g entity.new Factory()). To instantiate the inner class via reflection, I guess you have to get a suitable constructor using Factory.class.getConstructors() and get pass an instance of the outer class when calling it.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2913369703414801920/934339479004260218/comments/default/4403139286629910594'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2913369703414801920/934339479004260218/comments/default/4403139286629910594'/><link rel='alternate' type='text/html' href='http://lt-rider.blogspot.com/2011/06/java-puzzle-2.html?showComment=1309205062813#c4403139286629910594' title=''/><author><name>Bureck</name><uri>http://www.blogger.com/profile/18042165376434826160</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://lt-rider.blogspot.com/2011/06/java-puzzle-2.html' ref='tag:blogger.com,1999:blog-2913369703414801920.post-934339479004260218' source='http://www.blogger.com/feeds/2913369703414801920/posts/default/934339479004260218' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1688886780'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.displayTime' value='June 27, 2011 1:04 PM'/></entry><entry><id>tag:blogger.com,1999:blog-2913369703414801920.post-6114727623353138081</id><published>2011-06-27T12:48:49.787-07:00</published><updated>2011-06-27T12:48:49.787-07:00</updated><title type='text'>My guess would be that the exception is thrown bec...</title><content type='html'>My guess would be that the exception is thrown because Factory is a non-static inner class and therefore a Factory instance is bound to an Entity instance. Because there is no instance in the static main method, no Factory can be created.&lt;br /&gt;&lt;br /&gt;The solution is simply to declare the Factory class static.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2913369703414801920/934339479004260218/comments/default/6114727623353138081'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2913369703414801920/934339479004260218/comments/default/6114727623353138081'/><link rel='alternate' type='text/html' href='http://lt-rider.blogspot.com/2011/06/java-puzzle-2.html?showComment=1309204129787#c6114727623353138081' title=''/><author><name>Joachim Mairböck</name><uri>http://www.blogger.com/profile/02285637327109121868</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_MflBr3wLjoU/SztgVTO92xI/AAAAAAAAC_U/EvlqumSVk1k/s1600-R/f1.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://lt-rider.blogspot.com/2011/06/java-puzzle-2.html' ref='tag:blogger.com,1999:blog-2913369703414801920.post-934339479004260218' source='http://www.blogger.com/feeds/2913369703414801920/posts/default/934339479004260218' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-937253124'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.displayTime' value='June 27, 2011 12:48 PM'/></entry><entry><id>tag:blogger.com,1999:blog-2913369703414801920.post-6451103589406816702</id><published>2011-06-27T12:40:52.164-07:00</published><updated>2011-06-27T12:40:52.164-07:00</updated><title type='text'>Because Factory is an inner class and there&amp;#39;s ...</title><content type='html'>Because Factory is an inner class and there&amp;#39;s no enclosing Entity instance?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2913369703414801920/934339479004260218/comments/default/6451103589406816702'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2913369703414801920/934339479004260218/comments/default/6451103589406816702'/><link rel='alternate' type='text/html' href='http://lt-rider.blogspot.com/2011/06/java-puzzle-2.html?showComment=1309203652164#c6451103589406816702' title=''/><author><name>Comentator</name><uri>http://www.blogger.com/profile/00443431909508124725</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://lt-rider.blogspot.com/2011/06/java-puzzle-2.html' ref='tag:blogger.com,1999:blog-2913369703414801920.post-934339479004260218' source='http://www.blogger.com/feeds/2913369703414801920/posts/default/934339479004260218' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-539434741'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.displayTime' value='June 27, 2011 12:40 PM'/></entry><entry><id>tag:blogger.com,1999:blog-2913369703414801920.post-8395313828927531175</id><published>2011-06-27T12:19:05.130-07:00</published><updated>2011-06-27T12:19:05.130-07:00</updated><title type='text'>The new instance is missing an enclosing instance ...</title><content type='html'>The new instance is missing an enclosing instance of Entity, unless Factory is declared as a static class.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2913369703414801920/934339479004260218/comments/default/8395313828927531175'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2913369703414801920/934339479004260218/comments/default/8395313828927531175'/><link rel='alternate' type='text/html' href='http://lt-rider.blogspot.com/2011/06/java-puzzle-2.html?showComment=1309202345130#c8395313828927531175' title=''/><author><name>w-cker</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://lt-rider.blogspot.com/2011/06/java-puzzle-2.html' ref='tag:blogger.com,1999:blog-2913369703414801920.post-934339479004260218' source='http://www.blogger.com/feeds/2913369703414801920/posts/default/934339479004260218' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1478630557'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.displayTime' value='June 27, 2011 12:19 PM'/></entry><entry><id>tag:blogger.com,1999:blog-2913369703414801920.post-6391097741544633361</id><published>2011-06-27T12:18:30.395-07:00</published><updated>2011-06-27T12:18:30.395-07:00</updated><title type='text'>changing the factory declaration to this seems to ...</title><content type='html'>changing the factory declaration to this seems to work.&lt;br /&gt;&lt;br /&gt;public static class Factory&lt;br /&gt;&lt;br /&gt;I suppose the &amp;quot;reason&amp;quot; is that the static method of &amp;quot;main&amp;quot; can only reach other static declarations.  If factory where its own top-level class, then it wouldn&amp;#39;t need static.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2913369703414801920/934339479004260218/comments/default/6391097741544633361'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2913369703414801920/934339479004260218/comments/default/6391097741544633361'/><link rel='alternate' type='text/html' href='http://lt-rider.blogspot.com/2011/06/java-puzzle-2.html?showComment=1309202310395#c6391097741544633361' title=''/><author><name>Greg A.</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://lt-rider.blogspot.com/2011/06/java-puzzle-2.html' ref='tag:blogger.com,1999:blog-2913369703414801920.post-934339479004260218' source='http://www.blogger.com/feeds/2913369703414801920/posts/default/934339479004260218' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1599676603'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.displayTime' value='June 27, 2011 12:18 PM'/></entry><entry><id>tag:blogger.com,1999:blog-2913369703414801920.post-4227607054589965175</id><published>2011-06-27T12:15:45.019-07:00</published><updated>2011-06-27T12:15:45.019-07:00</updated><title type='text'>Non-static inner class Factory is only reachable v...</title><content type='html'>Non-static inner class Factory is only reachable via an enclosing instance of Entity.&lt;br /&gt;&lt;br /&gt;Fix by:&lt;br /&gt;a) declaring inner class Factory as static&lt;br /&gt;b) create Factory instance via an enclosing instance of entiy (but that would defeat the factories purpose)&lt;br /&gt;&lt;br /&gt;        Entity x = new Entity();&lt;br /&gt;        x.new Factory();</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2913369703414801920/934339479004260218/comments/default/4227607054589965175'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2913369703414801920/934339479004260218/comments/default/4227607054589965175'/><link rel='alternate' type='text/html' href='http://lt-rider.blogspot.com/2011/06/java-puzzle-2.html?showComment=1309202145019#c4227607054589965175' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://lt-rider.blogspot.com/2011/06/java-puzzle-2.html' ref='tag:blogger.com,1999:blog-2913369703414801920.post-934339479004260218' source='http://www.blogger.com/feeds/2913369703414801920/posts/default/934339479004260218' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-975806900'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.displayTime' value='June 27, 2011 12:15 PM'/></entry><entry><id>tag:blogger.com,1999:blog-2913369703414801920.post-719757065716467216</id><published>2011-03-19T13:50:41.800-07:00</published><updated>2011-03-19T13:50:41.800-07:00</updated><title type='text'>Hi Chris,

Thanks for the congrats!

Regarding val...</title><content type='html'>Hi Chris,&lt;br /&gt;&lt;br /&gt;Thanks for the congrats!&lt;br /&gt;&lt;br /&gt;Regarding validation in Sapphire, you annotate properties with declarative constraints or attach custom validation logic. The framework takes care of managing validation state as it manages the property value. If value is changed, validation is refreshed. Validation state is cached so that you aren&amp;#39;t constantly re-validating if value hasn&amp;#39;t changed.&lt;br /&gt;&lt;br /&gt;On the UI side, each part has validation state, which it can display locally and passes upward the parts tree. For property editor part, the validation state is tied to validation result of the property. For a section, the validation result is the combined state of all contained property editors. Etc...&lt;br /&gt;&lt;br /&gt;Property editors display validation state with a field assist decorator that you can click on to get access to problem texts and quick fixes. Content outline nodes display their validation state with a decorator overlay.&lt;br /&gt;&lt;br /&gt;Did I answer your question?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2913369703414801920/3431417107442370708/comments/default/719757065716467216'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2913369703414801920/3431417107442370708/comments/default/719757065716467216'/><link rel='alternate' type='text/html' href='http://lt-rider.blogspot.com/2011/03/state-of-sapphire-for-spring-2011.html?showComment=1300567841800#c719757065716467216' title=''/><author><name>Konstantin Komissarchik</name><uri>http://www.blogger.com/profile/12487640637368516721</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://lt-rider.blogspot.com/2011/03/state-of-sapphire-for-spring-2011.html' ref='tag:blogger.com,1999:blog-2913369703414801920.post-3431417107442370708' source='http://www.blogger.com/feeds/2913369703414801920/posts/default/3431417107442370708' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1287645654'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.displayTime' value='March 19, 2011 1:50 PM'/></entry><entry><id>tag:blogger.com,1999:blog-2913369703414801920.post-1037982104939431464</id><published>2011-03-19T13:39:01.647-07:00</published><updated>2011-03-19T13:39:01.647-07:00</updated><title type='text'>Hi Tom,

That&amp;#39;s sounds like it could be a very...</title><content type='html'>Hi Tom,&lt;br /&gt;&lt;br /&gt;That&amp;#39;s sounds like it could be a very informative exercise. I will send you an e-mail and we can work out a time.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2913369703414801920/3431417107442370708/comments/default/1037982104939431464'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2913369703414801920/3431417107442370708/comments/default/1037982104939431464'/><link rel='alternate' type='text/html' href='http://lt-rider.blogspot.com/2011/03/state-of-sapphire-for-spring-2011.html?showComment=1300567141647#c1037982104939431464' title=''/><author><name>Konstantin Komissarchik</name><uri>http://www.blogger.com/profile/12487640637368516721</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://lt-rider.blogspot.com/2011/03/state-of-sapphire-for-spring-2011.html' ref='tag:blogger.com,1999:blog-2913369703414801920.post-3431417107442370708' source='http://www.blogger.com/feeds/2913369703414801920/posts/default/3431417107442370708' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1287645654'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.displayTime' value='March 19, 2011 1:39 PM'/></entry></feed>
