Hi!

I am using WSAD 5.1.2, which is still JDK 1.3.1 based. There are some
issues when running the binding compiler/
binding runtime inside WSAD:

- org.jibx.runtime.Utility.serializeCharString(char) (line 917)
  This methods calls Character.toString(char), which does not exist in
JDK 1.3. This can be replaced whith a
  call to String.valueOf(char).

- org.jibx.binding.Compile.handleOutput(String[]) (line 167)
  org.jibx.extras.TestRoundtrip.runTest(String,String,String) (line
67)
  This methods call File(...).toURI(), which again does not exist in
JDK 1.3. In both cases, the construct
  new File(...).toURI().toURL() ist used to construct a correct escaped
URL, which is then passed to a 
  classloader. If you use new File(...).toURL(), then a URL is
constructed, which may have illegal characters 
  (e.g. a space instead of %20). In the common case this is fatal (e.g.
a http:// url containing spaces). But in 
  the special case of a file:// url, it works nevertheless. (In fact,
correct escaped urls don't work in JDK 1.2.2,
  because they are not unescaped before the filename is used....)

With these 3 changes, I can run the binding compiler in WSAD (using
Ant) whithout any problems. Is it
possible/desirable to incorporate these changes in the source?

Kai


-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
>From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
jibx-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to