Bug 7509

Summary: 1GQ6DUC: WSWB:WIN2000 - Ctrl-space Code Completion does not work
Product: [Eclipse Project] JDT Reporter: OTI Support <support>
Component: CoreAssignee: David Audel <david_audel>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3    
Version: 1.0   
Target Milestone: 2.0 M3   
Hardware: PC   
OS: Windows 2000   
Whiteboard:
Attachments:
Description Flags
zip file contains 2 jar files to import none

Description OTI Support CLA 2002-01-11 16:48:14 EST
Code assist does not work in the following test case.  When you hit ctrl-space,
no options appear.

Steps to Reproduce:

1. create a java project
2. import the following java class
3. import the external jars cm.jar and j2ee.jar into the project.
4. type "ds." ctrl-space, nothing comes up.

package Test;

import com.ibm.websphere.advanced.cm.factory.*;
import javax.sql.*;

public class test1 {

     public static void main(String[] args) throws Exception {
          DataSourceFactory ds = new DataSourceFactory();
          // The getDataSource can't be use with code completion but can be 
written manually.
          // type ds. ctrl-space here - looking for ds.getDataSource(new 
java.util.Properties());
     }
}
Comment 1 OTI Support CLA 2002-01-11 17:10:46 EST
Created attachment 218 [details]
zip file contains 2 jar files to import
Comment 2 OTI Support CLA 2002-01-11 17:12:56 EST
Further testing shows

  Attributes a = new Attributes();
	// a. ctrl-space works here... another class from DataSourceFactory's 
package


          CMFactoryException cmf = new CMFactoryException();
	// cmf. ctrl-space works here... another class from DataSourceFactory's 
package
Comment 3 Erich Gamma CLA 2002-01-13 17:31:48 EST
moving to JDT CORE for investigation
Comment 4 Philipe Mulet CLA 2002-01-16 10:10:45 EST
Please investigate in 2.0 builds.
Comment 5 David Audel CLA 2002-01-29 06:59:16 EST
Fixed in Stream 2.0

See bug <a http://dev.eclipse.org/bugs/show_bug.cgi?id=7119>

The type of tc (a private field of DataSourceFactory) is not in the classpath.
This type is com.ibm.ejs.ras.TraceComponent.