Fixes Issue 8717 - Private and Protected should be accessible from within
same module.
Merge pull request #1557 from AndrejMitrovic/Fix8717

Issue 8717 - Private and Protected should be accessible from within the same module.