Community
Participate
Working Groups
can't compile the following class. get compile error msg: can't find type javax.mail.1 works fine with suns compiler... import javax.mail.*; import javax.mail.event.TransportListener; import javax.mail.event.ConnectionListener; public class GOMailTransport extends Transport { public GOMailTransport(Session session, URLName urlname) { super(session, urlname); } public void addMailTransportListener(TransportListener tl) { addTransportListener(tl); } public void removeMailTransportListener(TransportListener tl) { removeTransportListener(tl); } public static void sendMail(Message msg) throws MessagingException { send(msg); } public static void sendMail(Message msg, Address[] addresses) throws MessagingException { send(msg, addresses); } //abstract method declared in Transport public void sendMessage(Message msg, Address[] addresses) throws MessagingException { } //Service super-class methods public void addMailConnectionListener(ConnectionListener cl) throws MessagingException { addConnectionListener(cl); } public void closeConnection() throws MessagingException { close(); } public void connect() throws MessagingException { connect(); } public void connect(String host, String user, String password) throws MessagingException { connect(host, user, password); } public boolean isServiceConnected() { return isConnected(); } public void removeMailConnectionListener(ConnectionListener cl) throws MessagingException { removeConnectionListener(cl); } public void setServiceConnected(boolean connected) throws MessagingException { setConnected(connected); } }
This has been confirmed fixed and was the same bug as in the marked duplicate. *** This bug has been marked as a duplicate of 35066 ***