Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 330851

Summary: Java discouraged access warning in o.e.w.jsdt.ui
Product: [WebTools] JSDT Reporter: Michael Rennie <Michael_Rennie>
Component: GeneralAssignee: Nitin Dahyabhai <thatnitind>
Status: RESOLVED FIXED QA Contact: Nitin Dahyabhai <thatnitind>
Severity: normal    
Priority: P3    
Version: 3.3   
Target Milestone: 3.3 RC1   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Michael Rennie CLA 2010-11-22 14:56:28 EST
code from HEAD

Description	Resource	Path	Location	Type
Discouraged access: The method getJavaProject() from the type InternalCompletionProposal is not accessible due to restriction on required project org.eclipse.wst.jsdt.core	CompletionProposalLabelProvider.java	/org.eclipse.wst.jsdt.ui/src/org/eclipse/wst/jsdt/ui/text/java	line 336	Java Problem

I would assume JSDT UI has unrestricted access to JSDT core.

Is there a reason for this particular case?

It seems like all of the org.eclipse.wst.jsdt.internal.codeassist.* packages do not allow jsdt.ui to access them without warning

There are also some internal packages being exported as API in jsdt.core:

org.eclipse.wst.jsdt.internal.oaametadata
org.eclipse.wst.jsdt.internal.core.index
org.eclipse.wst.jsdt.internal.core.interpret
Comment 1 Nitin Dahyabhai CLA 2011-04-25 14:42:12 EDT
Manifest updated.