Bug 283837

Summary: Evaluation context wrapper has different behavior with different imports.
Product: [Eclipse Project] JDT Reporter: Dmitry Geraskov <geraskov>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: jarthana, Olivier_Thomann, vyemialyanchyk
Version: 3.5Keywords: needinfo
Target Milestone: 3.7 M5   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Dmitry Geraskov CLA 2009-07-17 08:38:20 EDT
Build ID: I20080609-1311

When I use import 'org.test.myClass' it gives me Object's methods (clone(), toString()...),
but if I use 'org.hibernate.*' it doesn't give me the methods.

More information:
I use it as follows:
IEvaluationContext evalCtx = project.newEvaluationContext();
evalCtx.setImports(getImports());
CompletionProposalCollector collector = new CompletionProposalCollector( javaProject );
collector.acceptContext( new CompletionContext() );
evalCtx.codeComplete(code, position, collector);
Comment 1 Olivier Thomann CLA 2010-11-26 12:32:28 EST
Could you please provide the contents of the code and the positions of the completion ?
Thanks.
Comment 2 Dmitry Geraskov CLA 2010-11-29 04:00:04 EST
I tried to reproduce the issue but was not succeed.
I created an instance of 'org.test.myClass' and ont of the classes from 'org.hibernate.*'. And both showed me Object's methods.
That is why I guess I did something wrong, for example the Project doesn't have 'org.hibernate.*' package in classpath.
I think the issue could be rejected.
Comment 3 Olivier Thomann CLA 2011-01-19 09:46:08 EST
Closing as INVALID as requested by the reporter.
Comment 4 Jay Arthanareeswaran CLA 2011-01-25 05:01:27 EST
Verified for 3.7M5