Bug 36388

Summary: can't find type javax.mail.1 - compiler error
Product: [Tools] AspectJ Reporter: Christian Seifert <christian_seifert>
Component: CompilerAssignee: Jim Hugunin <jim-aj>
Status: RESOLVED DUPLICATE QA Contact:
Severity: major    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Linux   
Whiteboard:

Description Christian Seifert CLA 2003-04-10 19:36:52 EDT
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);
	}
}
Comment 1 Jim Hugunin CLA 2003-05-01 16:08:37 EDT
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 ***