Typo in org.jivesoftware.smack.util.DNSUtil.init() prevents JavaXResolver from being configured

I am using SMACK 4.0.6. It appears to me that the exception is caused by a bug on line 53 of org.jivesoftware.smack.util.DNSUtil. There is a missing dot after “org.jivesoftware.smack.util.dns” + resolver. In my case this causes the class loader to look for org.jivesoftware.smack.util.dnsjavax.JavaxResolver, org.jivesoftware.smack.util.dnsminidns.MiniDnsResolver and

org.jivesoftware.smack.util.dnsdnsjava.DNSJavaResolver.

Has this been reported and is there a fixed version?

Thanks,

Jim

You are right. Use

static {

DNSUtil.setDNSResolver(JavaxResolver.getInstance());

}

as workaround.

Logged as SMACK-635

Thanks,

For the response and workaround.