Re: j2s-development] Static Import Bug
Brought to you by:
zhourenjian
|
From: Soheil H. Y. <soh...@gm...> - 2006-09-04 07:27:02
|
I just wanted to test the packed js files that includes all the class
files! Do they work?
On 9/3/06, Zhou Renjian <jo...@sj...> wrote:
> Hi Soheil,
>
> I optimized something about class dependencies. And it may bring lots of
> bugs.
>
> May you describe more about this bug?
>
> BTW: In most situations, class SWT may be NOT in the class dependency
> tree. This is because all constants of SWT.* will be treated as
> constants with no needs to import that 12k *.js file. If you do want to
> import class SWT (maybe you want to write your *.js by hands), you
> should add a line in the class' Javadoc comment:
> @j2sOptionalImport org.eclipse.swt.SWT
> or in the *.js file, add similar codes:
> ClazzLoader.loadClass ("org.eclipse.swt.SWT", function () {
> // do whatever after SWT is loaded
> });
> in *.js.
>
> Regards,
>
> Soheil Hassas Yeganeh wrote:
> > Hi Zhou,
> >
> > I'm now back and updated my Java2Script source codes. I think, a new
> > unknown bug is introduce in J2S.
> > As I'd tested before, we can import a javascript statically using
> > <script> in html, beside the Dynamic loading.
> > But, now, it does not work. For testing this issue you can import
> > SWT.js itself in any snippet, and see it will not work!
> >
> > Regards,
> > Soheil
> >
> > -------------------------------------------------------------------------
> > Using Tomcat but need to do more? Need to support web services, security?
> > Get stuff done quickly with pre-integrated technology to make your job easier
> > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > _______________________________________________
> > j2s-development mailing list
> > j2s...@li...
> > https://lists.sourceforge.net/lists/listinfo/j2s-development
> >
> >
> >
>
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> j2s-development mailing list
> j2s...@li...
> https://lists.sourceforge.net/lists/listinfo/j2s-development
>
|