jakarta-bsf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rony G. Flatscher" <Rony.Flatsc...@wu-wien.ac.at>
Subject Re: [Bsf-discussion] Solved: BSF-bug with "char" as argument
Date Tue, 28 Jan 2003 18:45:14 GMT
Bill,

> Oh nothing to be sorry about, just pointing out something that works 
> well for us over in the Apache httpd development mailing list.  BTW, 
> this patch shows that two lines of code are being deleted (note the 
> '-' by each of the lines being changed). 

Hmm, how about this version then?
;)

----------------------------- cut here -----------------------------
E:\rony\dev\bsf\bsf-2_2\lib\com\ibm\bsf\util>diff -wu 
bkp\EngineUtils.java EngineUtils.java
--- bkp\EngineUtils.java        2001-01-30 17:46:18.000000000 +0100
+++ EngineUtils.java    2003-01-24 21:49:12.000000000 +0100
@@ -137,6 +137,8 @@
              else if(args[i] instanceof Double ) argTypes[i]= double.class;
            } else if (args[i] instanceof Boolean) {
              argTypes[i] = boolean.class;
+            } else if (args[i] instanceof Character) {
+              argTypes[i] = char.class;
            }
          }
          m = MethodUtils.getMethod (beanClass, methodName, argTypes,
----------------------------- cut here -----------------------------

Clearly, it shows pluses...

Seriously, obviously I did it the wrong way, so the above fisrt cites 
the original file (but beware that is still from the 2.2. distribution) 
and then the one with my changes, hence now the semantically correct 
differences are shown (i.e. additions to the present code). Will look 
after this, should another patch suggestion be posted.

Regards,

---rony




Mime
View raw message