<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Inside Java2Script: Reusing</title>
	<atom:link href="http://jossonsmith.wordpress.com/2006/01/24/inside-java2script-reusing/feed/" rel="self" type="application/rss+xml" />
	<link>http://jossonsmith.wordpress.com/2006/01/24/inside-java2script-reusing/</link>
	<description>Reusing Java codes into JavaScript (http://j2s.sourceforge.net)</description>
	<lastBuildDate>Wed, 15 Apr 2009 13:08:07 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Heartburn Home Remedy</title>
		<link>http://jossonsmith.wordpress.com/2006/01/24/inside-java2script-reusing/#comment-233</link>
		<dc:creator>Heartburn Home Remedy</dc:creator>
		<pubDate>Wed, 15 Apr 2009 13:08:07 +0000</pubDate>
		<guid isPermaLink="false">http://jossonsmith.wordpress.com/2006/01/24/inside-java2script-reusing/#comment-233</guid>
		<description>Hey, nice tips.   I&#039;ll buy a bottle of beer to that person from that forum who told me to go to your blog :)</description>
		<content:encoded><![CDATA[<p>Hey, nice tips.   I&#8217;ll buy a bottle of beer to that person from that forum who told me to go to your blog <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bacyncpype</title>
		<link>http://jossonsmith.wordpress.com/2006/01/24/inside-java2script-reusing/#comment-87</link>
		<dc:creator>Bacyncpype</dc:creator>
		<pubDate>Sun, 24 Jun 2007 20:08:13 +0000</pubDate>
		<guid isPermaLink="false">http://jossonsmith.wordpress.com/2006/01/24/inside-java2script-reusing/#comment-87</guid>
		<description>&lt;a href=&quot;http://ford2007.freehostia.com/ford-fusion.html&quot; rel=&quot;nofollow&quot;&gt;ford fusion&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p><a href="http://ford2007.freehostia.com/ford-fusion.html" rel="nofollow">ford fusion</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Inside Java2Script &#187; Blog Archive &#187; Reusing: Spirit of Java2Script</title>
		<link>http://jossonsmith.wordpress.com/2006/01/24/inside-java2script-reusing/#comment-79</link>
		<dc:creator>Inside Java2Script &#187; Blog Archive &#187; Reusing: Spirit of Java2Script</dc:creator>
		<pubDate>Sat, 12 May 2007 00:20:36 +0000</pubDate>
		<guid isPermaLink="false">http://jossonsmith.wordpress.com/2006/01/24/inside-java2script-reusing/#comment-79</guid>
		<description>[...] following is an article that I posted about a year ago. I just repost it, because I think Reusing Java codes and tools is my fundamental [...]</description>
		<content:encoded><![CDATA[<p>[...] following is an article that I posted about a year ago. I just repost it, because I think Reusing Java codes and tools is my fundamental [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: josson smith</title>
		<link>http://jossonsmith.wordpress.com/2006/01/24/inside-java2script-reusing/#comment-3</link>
		<dc:creator>josson smith</dc:creator>
		<pubDate>Thu, 26 Jan 2006 20:34:53 +0000</pubDate>
		<guid isPermaLink="false">http://jossonsmith.wordpress.com/2006/01/24/inside-java2script-reusing/#comment-3</guid>
		<description>&quot;Cyclic dependencies&quot; is a problem that I knew. ClassLoader method may require times and efforts. A sugguestion at this time is to refactor the original Java codes so that cyclic dependencies is not a problem for JavaScript. Tips: static members of a class will instantialized instantly after the declaration of the class. You should instntialize the static member by lazy loading method if it&#039;s in cyclic dependencies.

It seems that inner classes compiling is not fully implemented. I tested the compiler on inner class issue by testing on java.util.* (HashSet, HashMap, ...). After seeing that java.util.* worked OK (but may not be completely correct), I did not make any further tests (Constructing complicated inner classes with all different usages may require good understanding of Java Specification. The best way to test the compiler is running testcases over &lt;a title=&quot;Java TCK&quot; href=&quot;http://www.jcp.org/en/resources/tdk&quot;&gt;Java TCK&lt;/a&gt;. But it will never have the chance or need to do so, as Java2Script is not a pure Java compiler indeed). Maybe you can seperate you DFA2 classes out from the project, and send me a copy  so I can study more about the inner class implementation of Java2Script compiler.

Actually, there are other defects in Java2Script, which will require more efforts to overcome.
1. Thread in Java will never be implemented in pure JavaScript (Some alternatives should be invented to imitate the Thread activites: waiting, sleeping, blocking, and so on)
2. Primitive types: byte, short, int, long, float, double are all treated as Number Objects in JavaScript
3. Regular Expression is not implemented yet.
4. Array with different multiple dimensions is not distinguished in the metho invocation. Example, &quot;int[][] a&quot; and &quot;int[] a&quot; is all treated as &quot;Array a&quot;.
5. Others...

The original goal of the project Java2Script is to provide a toolkit to translating Java codes into JavaScript with about the ideal 95%+ compatiablities. :)</description>
		<content:encoded><![CDATA[<p>&#8220;Cyclic dependencies&#8221; is a problem that I knew. ClassLoader method may require times and efforts. A sugguestion at this time is to refactor the original Java codes so that cyclic dependencies is not a problem for JavaScript. Tips: static members of a class will instantialized instantly after the declaration of the class. You should instntialize the static member by lazy loading method if it&#8217;s in cyclic dependencies.</p>
<p>It seems that inner classes compiling is not fully implemented. I tested the compiler on inner class issue by testing on java.util.* (HashSet, HashMap, &#8230;). After seeing that java.util.* worked OK (but may not be completely correct), I did not make any further tests (Constructing complicated inner classes with all different usages may require good understanding of Java Specification. The best way to test the compiler is running testcases over <a title="Java TCK" href="http://www.jcp.org/en/resources/tdk">Java TCK</a>. But it will never have the chance or need to do so, as Java2Script is not a pure Java compiler indeed). Maybe you can seperate you DFA2 classes out from the project, and send me a copy  so I can study more about the inner class implementation of Java2Script compiler.</p>
<p>Actually, there are other defects in Java2Script, which will require more efforts to overcome.<br />
1. Thread in Java will never be implemented in pure JavaScript (Some alternatives should be invented to imitate the Thread activites: waiting, sleeping, blocking, and so on)<br />
2. Primitive types: byte, short, int, long, float, double are all treated as Number Objects in JavaScript<br />
3. Regular Expression is not implemented yet.<br />
4. Array with different multiple dimensions is not distinguished in the metho invocation. Example, &#8220;int[][] a&#8221; and &#8220;int[] a&#8221; is all treated as &#8220;Array a&#8221;.<br />
5. Others&#8230;</p>
<p>The original goal of the project Java2Script is to provide a toolkit to translating Java codes into JavaScript with about the ideal 95%+ compatiablities. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Juergen</title>
		<link>http://jossonsmith.wordpress.com/2006/01/24/inside-java2script-reusing/#comment-2</link>
		<dc:creator>Juergen</dc:creator>
		<pubDate>Thu, 26 Jan 2006 10:07:03 +0000</pubDate>
		<guid isPermaLink="false">http://jossonsmith.wordpress.com/2006/01/24/inside-java2script-reusing/#comment-2</guid>
		<description>Hi,

I tried to compile a larger java project to JavaScript. There are some important issues:

1. Without a loader approach you cannot solve cyclic dependencies like:

public abstract class Token 
{
    public static final int EOF = CharStream.EOF;
    public static final Token EOF_TOKEN = new CommonToken(EOF);
};

public class CommonToken extends Token 
.....

2. Your compiler does not work for code like:

class DFA2 extends DFA 
{
        DFA.State s = new DFA.State() 
{
            public DFA.State transition(IntStream input) throws RecognitionException {
                int LA2_10 = input.LA(1);
                if ( LA2_10==ID&#124;&#124;(LA2_10&gt;=11 &amp;&amp; LA2_10</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I tried to compile a larger java project to JavaScript. There are some important issues:</p>
<p>1. Without a loader approach you cannot solve cyclic dependencies like:</p>
<p>public abstract class Token<br />
{<br />
    public static final int EOF = CharStream.EOF;<br />
    public static final Token EOF_TOKEN = new CommonToken(EOF);<br />
};</p>
<p>public class CommonToken extends Token<br />
&#8230;..</p>
<p>2. Your compiler does not work for code like:</p>
<p>class DFA2 extends DFA<br />
{<br />
        DFA.State s = new DFA.State()<br />
{<br />
            public DFA.State transition(IntStream input) throws RecognitionException {<br />
                int LA2_10 = input.LA(1);<br />
                if ( LA2_10==ID||(LA2_10&gt;=11 &amp;&amp; LA2_10</p>
]]></content:encoded>
	</item>
</channel>
</rss>
