J2JS
Home > Compatibility

1. Java Compatibility

All demos and test cases work with the JDK 4/5/6 compiler and with the Eclipse 3.2 (JDT) compiler.

2. Browser Compatibility

A browser tests compatible if all JUnit tests defined by the j2js-Runtime project successfully execute, and if all demo applications work correctly.

The following browsers test compatible:
IExplorer since Version 6
Firefox since Version 1.5
Safari Version 3.0 (on MS-Windows)
Opera Version 9

It is our observation that Opera excels with regards to w3c conformity and both JavaScript and DHTML performance.

3. Success story: Safari Compatibility

Adding Safari to the list of compatible browsers was a remarkable smooth task. It speaks both for the adherence of Safari to w3c standards, and the abstraction J2JS offers from browser quirks. Only the following actions had to be taken:

  • Fix the Collator.java class, because Safari 3.0 has a bug in the JavaScript function String.localeCompare().
  • Fix the event handling of the J2JS runtime, because Safari chooses to handle the event target differently from other major browsers.

Note that the CookieTestCase.java fails on Safari as Version 3.0 on MS-Windows does not seem to support cookies.

Last build on Sat Jan 03 11:07:13 CET 2009