You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-users@xml.apache.org by "Wang, XD (Xiao)" <X....@dl.ac.uk> on 2003/12/04 15:20:07 UTC

Fail to recompile xindice1.0 in Red Hat 7.3

Hi there

I downloaded xml-xindice-1.0.zip and unzip it. I built it in SuSE system, it
succeed. If I built it in Red Hat 7.3 system. Two errors happened, even
nothing changed to source code. My Java version is 1.4.2.

The error messages are: 

[javac]/home/xiw/temp/xml-xindice-1.0/java/src/org/apache/xindice/core/query
/XPathQueryResolver.java:502: array required, but
org.apache.xpath.compiler.OpMapVector found
[javac] int endFunc = pos + cmp.getOpMap()[pos+1] - 1;
[javac]                                   ^
[javac]/home/xiw/temp/xml-xindice-1.0/java/src/org/apache/xindice/core/query
/XPathQueryResolver.java:502: operator - cannot be applied to
java.lang.String, int
[javac] int endFunc = pos + cmp.getOpMap()[pos+1] - 1;
[javac]                                           ^


So it is highly appreciated to any idea of sorting it out in Red Hat 7.3
system.


Thanks in advance

Xiao


Re: Fail to recompile xindice1.0 in Red Hat 7.3

Posted by JC Tchitchiama <jc...@panonet.net>.
Xiao,

There isn't such issue in the version 1.1; Just make the following changes

class:- XPathQueryResolver.java
line:-  502 

int endFunc = pos + cmp.getOp(pos+1) - 1;



On Thursday 04 Dec 2003 2:20 pm, Wang, XD (Xiao) wrote:
> Hi there
>
> I downloaded xml-xindice-1.0.zip and unzip it. I built it in SuSE system,
> it succeed. If I built it in Red Hat 7.3 system. Two errors happened, even
> nothing changed to source code. My Java version is 1.4.2.
>
> The error messages are:
>
> [javac]/home/xiw/temp/xml-xindice-1.0/java/src/org/apache/xindice/core/quer
>y /XPathQueryResolver.java:502: array required, but
> org.apache.xpath.compiler.OpMapVector found
> [javac] int endFunc = pos + cmp.getOpMap()[pos+1] - 1;
> [javac]                                   ^
> [javac]/home/xiw/temp/xml-xindice-1.0/java/src/org/apache/xindice/core/quer
>y /XPathQueryResolver.java:502: operator - cannot be applied to
> java.lang.String, int
> [javac] int endFunc = pos + cmp.getOpMap()[pos+1] - 1;
> [javac]                                           ^
>
>
> So it is highly appreciated to any idea of sorting it out in Red Hat 7.3
> system.
>
>
> Thanks in advance
>
> Xiao

-- 

Best Regards.

JC.
           \\- - -//
          (  @ @  )
===oOOo-(_)-oOOo=================================================
      jct@panonet.net
=================================================================