Bug 10320 - Error in extract method
Summary: Error in extract method
Status: RESOLVED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.0 M4   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-02-26 21:15 EST by Theodore W. Leung CLA
Modified: 2002-02-27 05:49 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.