Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 369330 - visibility change access
Summary: visibility change access
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P2 normal (vote)
Target Milestone: ---   Edit
Assignee: PHP Core CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-22 08:22 EST by itay friedman CLA
Modified: 2020-05-14 11:09 EDT (History)
3 users (show)

See Also:


Attachments
protected to public (382 bytes, application/octet-stream)
2012-01-22 08:22 EST, itay friedman CLA
jacek.pospychala: iplog+
Details
public to private (362 bytes, application/octet-stream)
2012-01-22 08:23 EST, itay friedman CLA
no flags Details

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