santuario-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vishal Mahajan <vmaha...@amberpoint.com>
Subject Re: Compile Error Fix
Date Mon, 02 Oct 2006 14:54:43 GMT
I am compiling with 1.4. I think String.contains() was introduced only 
in 1.5.

Vishal

Raul Benito wrote:
> Hi Vishal,
> Nice to see you again. We need to take a look to your karma.
> Regarding this problem are you compiling with 1.3?
>
> Regards,
>
> On 10/2/06, Vishal Mahajan <vmahajan@amberpoint.com> wrote:
>> I don't seem to have the commit access in svn, and it has been long
>> period of inactivity on the list for me. Anyways, attached is a small
>> compile error fix in the project main branch.
>>
>> Vishal
>>
>>
>>
>> Index: 
>> org/apache/xml/security/transforms/implementations/TransformXPath.java
>> ===================================================================
>> --- 
>> org/apache/xml/security/transforms/implementations/TransformXPath.java      
>> (revision 451991)
>> +++ 
>> org/apache/xml/security/transforms/implementations/TransformXPath.java      
>> (working copy)
>> @@ -120,7 +120,7 @@
>>      private boolean needsCircunvent(String str) {
>>         //return true;
>>         //return false;
>> -       return str.contains("namespace") || str.contains("name()");
>> +       return (str.indexOf("namespace") != -1) || 
>> (str.indexOf("name()") != -1);
>>      }
>>
>>      static class XPathNodeFilter implements NodeFilter {
>>
>>
>>
>
>



Mime
View raw message