Bug 10320

Summary: Error in extract method
Product: [Eclipse Project] JDT Reporter: Theodore W. Leung <twl>
Component: CoreAssignee: Philipe Mulet <philippe_mulet>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3    
Version: 2.0   
Target Milestone: 2.0 M4   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Theodore W. Leung CLA 2002-02-26 21:15:23 EST
If I try to extract one of the system.out.printlns in EclipseBug#a

I get the error: 
"The following problem prevents performing the operation.

Compilation error at line 27. com.sun.net cannot be resolved or is not a type."

The class compiles and runs just fine. JSSE is in the classpath





import java.security.Security;

/**
 * @version 	1.0
 * @author
 */
public class EclipseBug {

	/**
	 * Constructor for EclipseBug.
	 */
	public EclipseBug() {
		super();
	}
	static {
		// enable ssl
		System.setProperty(
			"java.protocol.handler.pkgs",
			"com.sun.net.ssl.internal.www.protocol");
		// register JSSE provider for SSL
		Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider
());

	}

	public void a() {
		System.out.println("foo");
		System.out.println("bar");
	}
}
Comment 1 Theodore W. Leung CLA 2002-02-26 21:16:29 EST
Sorry, I'm on the 20020214 stable build.
Comment 2 Philipe Mulet CLA 2002-02-27 05:25:58 EST
I cannot reproduce with your test case, having jsse on the build path I can 
perform the extraction without any problem.

Can you provide better steps to reproduce ?
Comment 3 Philipe Mulet CLA 2002-02-27 05:49:52 EST
Closing, please reopen if able to provide reproduceable steps.