>>>>> "Rajesh" == Rajesh Patel <[EMAIL PROTECTED]> writes:
Rajesh> black:rpatel% javac bank/CGGAMPSSLSocketFactory.java
Rajesh> bank/CGGAMPSSLSocketFactory.java:17: The method
Rajesh> bank.Socket createSocket(java.lang.String, int) declared
Rajesh> in class bank.CGGAMPSSLSocketFactory cannot override the
Rajesh> method of the same signature declared in class
Rajesh> java.rmi.server.RMISocketFactory. They must have the same
Rajesh> return type.
Rajesh> public Socket createSocket(String host,int port) throws IOException{
Rajesh> ^
Rajesh> I am totally lost i have the same function signature as of
Rajesh> RMISocketFactory.
No, you haven't. You have "bank.Socket createSocket(String, int)" but
it should be "java.net.Socket createSocket(String, int)".
Adding "import java.net.Socket;" or using "java.net.Socket" instead of
the unqualified "Socket" should fix this.
Juergen
--
Juergen Kreileder, Blackdown Java-Linux Team
http://www.blackdown.org/java-linux.html
JVM'01: http://www.usenix.org/events/jvm01/
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]