You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by no...@apache.org on 2003/08/29 07:22:13 UTC
cvs commit: james-server/src/java/org/apache/james/dnsserver DNSServer.java
noel 2003/08/28 22:22:13
Modified: src/java/org/apache/james/dnsserver Tag: branch_2_1_fcs
DNSServer.java
Log:
dnsjava v1.4.0 changed its interfaces from short to int.
Revision Changes Path
No revision
No revision
1.9.4.8 +4 -4 james-server/src/java/org/apache/james/dnsserver/DNSServer.java
Index: DNSServer.java
===================================================================
RCS file: /home/cvs/james-server/src/java/org/apache/james/dnsserver/DNSServer.java,v
retrieving revision 1.9.4.7
retrieving revision 1.9.4.8
diff -u -r1.9.4.7 -r1.9.4.8
--- DNSServer.java 19 Jun 2003 06:15:11 -0000 1.9.4.7
+++ DNSServer.java 29 Aug 2003 05:22:13 -0000 1.9.4.8
@@ -263,7 +263,7 @@
* @param name the name of the host to be looked up
* @param type the type of record desired
*/
- public Record[] lookup(String name, short type) {
+ public Record[] lookup(String name, int type) {
return rawDNSLookup(name,false,type);
}
@@ -274,7 +274,7 @@
* @param querysent whether the query has already been sent to the DNS servers
* @param type the type of record desired
*/
- private Record[] rawDNSLookup(String namestr, boolean querysent, short type) {
+ private Record[] rawDNSLookup(String namestr, boolean querysent, int type) {
Name name = null;
try {
name = Name.fromString(namestr, Name.root);
@@ -283,7 +283,7 @@
getLogger().error("Couldn't parse name " + namestr, tpe);
return null;
}
- short dclass = DClass.IN;
+ int dclass = DClass.IN;
SetResponse cached = cache.lookupRecords(name, type, dnsCredibility);
if (cached.isSuccessful()) {
@@ -317,7 +317,7 @@
return null;
}
- short rcode = response.getHeader().getRcode();
+ int rcode = response.getHeader().getRcode();
if (rcode == Rcode.NOERROR || rcode == Rcode.NXDOMAIN) {
cached = cache.addMessage(response);
if (cached != null && cached.isSuccessful()) {
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org
RE: cvs commit: james-server/src/java/org/apache/james/dnsserver DNSServer.java
Posted by "Noel J. Bergman" <no...@devtech.com>.
Drop it into place and find out? ;-) You could also try the previous
version from his site.
I'll put up another snapshot tonight, which will include the new dnsjava and
the other recent changes.
--- Noel
-----Original Message-----
From: Kenny Smith [mailto:james-list@journalscape.com]
Sent: Friday, August 29, 2003 13:14
To: James Developers List
Subject: Re: cvs commit:
james-server/src/java/org/apache/james/dnsserver DNSServer.java
Hi Noel,
Will the below change actually cause failures if I don't update my
source? I'm using a binary dist for convenience so its difficult to
integrate such changes.
Kenny Smith
noel@apache.org wrote:
> noel 2003/08/28 22:22:13
>
> Modified: src/java/org/apache/james/dnsserver Tag: branch_2_1_fcs
> DNSServer.java
> Log:
> dnsjava v1.4.0 changed its interfaces from short to int.
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org
Re: cvs commit: james-server/src/java/org/apache/james/dnsserver
DNSServer.java
Posted by Kenny Smith <ja...@journalscape.com>.
Hi Noel,
Will the below change actually cause failures if I don't update my
source? I'm using a binary dist for convenience so its difficult to
integrate such changes.
Kenny Smith
noel@apache.org wrote:
> noel 2003/08/28 22:22:13
>
> Modified: src/java/org/apache/james/dnsserver Tag: branch_2_1_fcs
> DNSServer.java
> Log:
> dnsjava v1.4.0 changed its interfaces from short to int.
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org