Hi Henner, as i promise you last week i've tested the new CVS snapshot of dbforms 2.2 with Eclipse + jdk 1.3.1 + Tomcat 4.1.29.

There is still a little problem with the 1.3 compatibility
patch code into the org.dbforms.util.Util class: when running
on a late JVM (before 1.4), the methods encCheck() and decCheck()
rise a java.lang.NoSuchMethodError and NOT a
java.lang.NoSuchMethodException, so the encode() and
decode() methods cannot catch it!

Current method implementation:

public static final String encode(String s, String enc) throws UnsupportedEncodingException {
if (!Util.isNull(s)) {
try {
s = encCheck(s, enc);
} catch (NoSuchMethodException nsme) {
^^^^^^^^^^^^^^^^^^^^^
s = URLEncoder.encode(s);
}
}


      return s;
   }

must be turned to:

public static final String encode(String s, String enc) throws UnsupportedEncodingException {
if (!Util.isNull(s)) {
try {
s = encCheck(s, enc);
} catch (NoSuchMethodError nsme) {
^^^^^^^^^^^^^^^^^
s = URLEncoder.encode(s);
}
}


      return s;
   }

The same, obviously, for the decode() method.

After this change, dbforms successfully run on JDK 1.3, as
i could test on my CVS snapshot.

Hope this could help

Cheers
Roberto





-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
DbForms Mailing List

http://www.wap-force.net/dbforms

Reply via email to