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

Bug 369330

Summary: visibility change access
Product: z_Archived Reporter: itay friedman <itay.f>
Component: PDTAssignee: PHP Core <php.core-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P2 CC: jacek.pospychala, silviya, zhaozhongwei
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
protected to public
jacek.pospychala: iplog+
public to private none

Description itay friedman CLA 2012-01-22 08:22:45 EST
Created attachment 209883 [details]
protected to public

When creating a class which uses a trait prpoblems occur both ways:
1. when changing visibility of a method from private/protected to public the method isn't shown in an instance of the class.
2. when changing visibility of a method from public to private/protected the method is still shown in an instance of the class.


example tests attached

1. produces:
junit.framework.AssertionFailedError: 
EXPECTED COMPLETIONS LIST:
-----------------------------
method(sayHello)

ACTUAL COMPLETIONS LIST:
-----------------------------


2. produces:
junit.framework.AssertionFailedError: 
EXPECTED COMPLETIONS LIST:
-----------------------------

ACTUAL COMPLETIONS LIST:
-----------------------------
method(sayHello)
Comment 1 itay friedman CLA 2012-01-22 08:23:40 EST
Created attachment 209884 [details]
public to private
Comment 2 Zhongwei Zhao CLA 2012-05-14 02:53:33 EDT
fixed
Comment 3 Sylvia Tancheva CLA 2012-07-05 07:33:53 EDT
Verified. Closing.
Ilina Stefanova