Well, maybe this is a stupid question, but I cannot solve this problem.
In my ServiceBrowser class, I have this line:
ServiceResolver serviceResolver = new ServiceResolver(ifIndex, serviceName, regType, domain);
And the compiler complains about it. It says:
cannot find symbol symbol : constructor ServiceResolver(int,java.lang.String,java.lang.String,java.lang.String)
This is strange because I have a constructor in ServiceResolver:
public void ServiceResolver(int ifIndex, String serviceName, String regType, String domain) { this.ifIndex = ifIndex; this.serviceName = serviceName; this.regType = regType; this.domain = domain; }
ADDED: I removed void from the constructor and it works! What for?
java constructor compilation
Roman
source share