Bug 283837 - Evaluation context wrapper has different behavior with different imports.
Summary: Evaluation context wrapper has different behavior with different imports.
Status: VERIFIED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.5   Edit
Hardware: PC Windows XP
: P3 normal with 1 vote (vote)
Target Milestone: 3.7 M5   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2009-07-17 08:38 EDT by Dmitry Geraskov CLA
Modified: 2011-01-25 05:01 EST (History)
3 users (show)

See Also:


Attachments

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