Boolean b = new Boolean(true);
System.out.println(b.equals(true));
prints "true" in java and "false" in javascript. The sollution seems to be analog to Character's.
And another small detail, Boolean class has not the getName() method... so Boolean.class.getName() translated js code will fail to execute...
My sourceforge's id is cancerbero_sgx. I have experience developing eclipse plugins (including jdt based ones), and years using java and javascript/html/css but I'm not sure how can I help in j2s. I'm experimenting with j2s and never used it for production...
I have some experimental projects based on j2script like 1)java wrappers for yui js toolkit dom-event functions 2) lots of tests cases about java to javascript code translation correctness... 3) a small/lightweight java.util alternative , etc, but i'm not sure how these are related o be useful to j2s...
regards,
--
Sebastian Gurin <sgu...@softpoint.org>
> Hi Sebastian,
>
hi zhou!
> I just added you into Java2Script developer list. So you should have ccess
> to shell server group space and have access to Subversion repository right
> now.
thanks!
>
> By the way, I would like to talk a little more about Java2Script project's
> current development status. It is a long time since last release (1.0.0 at
> Oct 2007). And development is still active. Some new features, like
> supporting Eclipse 3.4, adding Java2Script desktop and compound pipe for
> Comet applications, are already available in SVN. We are going to make some
> milestone releases for 2.0.0 in the coming days.
>
IMHO there are a *lot* of interested things that can be (re) implemented in javascript but the tricky thing is offer the user a flexible sollution. In this sense j2script made it well in packaging the j2slib, java libs swt and ajax libs separately. For example, in my experience/opinion/taste, java.util and swt are "too much" for current javascript engines but j2s let me choose not to use them, or better said use my own visual / collection / etc sollutions. And that is good. My point is that j2s users and needs are several and different and that is a good idea give flexibility not forcing the user to one sollution.
> There are lots of todos, for example, SWT 3.4 update (Currently Java2Script
> SWT is based on SWT 3.1), JFace support, Swing support, and others.
> Integrating Java2Script's libraries with other JavaScript libraries is
> another job. And lots of other jobs outside my mind...
yes as I said, there are lots of things we are tempted to support. In my case where performance is an issue, i cant afford the use of java.util.HashMap when javascript have an excelent/LW/native map implementation, So I created a very small Collection, Iterator, List, Map class hierrarchy for exploiting this.
Another expierience of mine: SWT is a great toolkit for the desktop and the j2s implementation is simply great. But some people (like me) are more interesting on using web concepts like stylesheets, sintactic document, templates, that swt was simply not designed to support. I know j2s was created for easily migrate an swt app to the browser, but I think other users needs (like write web apps from scratch) have to be taken in account too.
Well, I hope you can understand my point (and my bad english).
Cheers
--
Sebastian Gurin <sgu...@softpoint.org>