Error build driver - Mailing list pgsql-jdbc

From Leandro Rodrigo Saad Cruz
Subject Error build driver
Date
Msg-id 3AE74FDC.199BBFF9@ibnetwork.com.br
Whole thread Raw
List pgsql-jdbc
Hi all, I'm getting this error while trying to build my jar from
src/interfaces/jdbc
compile:
    [javac] Compiling 2 source files to
/.4/local/src/postgresql-7.1/src/interfaces/jdbc/build
    [javac]
    [javac] Found 3 semantic errors compiling
"/.4/local/src/postgresql-7.1/src/interfaces/jdbc/org/postgresql/jdbc2/DatabaseMetaData.java":
    [javac]
    [javac]   1691.     case 'r':
    [javac]                      <->
    [javac] *** Error: The type of this expression, "char", is not
assignment-convertible to the type of the switch statement expression,
"byte".
    [javac]
    [javac]
    [javac]   1694.     case 'i':
    [javac]                      <->
    [javac] *** Error: The type of this expression, "char", is not
assignment-convertible to the type of the switch statement expression,
"byte".
    [javac]
    [javac]
    [javac]   1697.     case 'S':
    [javac]                      <->
    [javac] *** Error: The type of this expression, "char", is not
assignment-convertible to the type of the switch statement expression,
"byte".
    [javac]
    [javac] Found 6 syntax errors in
"/.4/local/src/postgresql-7.1/src/interfaces/jdbc/org/postgresql/Driver.java":
    [javac]
    [javac]    199.     return ${major};
    [javac]             ^------^
    [javac]
    [javac] *** Syntax: ";" inserted to complete BlockStatements
    [javac]
    [javac]
    [javac]    199.     return ${major};
    [javac]                      ^---^
    [javac]
    [javac] *** Syntax: "AssignmentOperator AssignmentExpression"
inserted to complete Assignment
    [javac]
    [javac]
    [javac]    199.     return ${major};
    [javac]                      ^---^
    [javac]
    [javac] *** Syntax: ";" inserted to complete BlockStatementsopt
    [javac]
    [javac]
    [javac]    209.     return ${minor};
    [javac]             ^------^
    [javac]
    [javac] *** Syntax: ";" inserted to complete BlockStatements
    [javac]
    [javac]
    [javac]    209.     return ${minor};
    [javac]                      ^---^
    [javac]
    [javac] *** Syntax: "AssignmentOperator AssignmentExpression"
inserted to complete Assignment
    [javac]
    [javac]
    [javac]    209.     return ${minor};
    [javac]                      ^---^
    [javac]
    [javac] *** Syntax: ";" inserted to complete BlockStatementsopt

I've looked into the build file ant it never sets ${minor} ou ${major}
I doesn't includes any property files either.

Did I miss something or the build file is broken ??
--
Leandro Rodrigo Saad Cruz

InterBusiness Tecnolgia e Servicos
http://www.ibnetwork.com.br
telefone 4191-3638
Sao Paulo - SP - Brasil

pgsql-jdbc by date:

Previous
From: "David Esposito"
Date:
Subject: getObject and Aggregate SQL functions
Next
From: "dejudi"
Date:
Subject: Loading JDBC70 is not an easy problem