Boo

Property getter/setter visibility is not checked nor emitted separately.

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 0.8.2
  • Fix Version/s: 0.9
  • Component/s: None
  • Labels:
    None
  • Testcase included:
    yes
  • Number of attachments :
    0

Description

Following code compiles fine :

Title as string:
		get:
			return _title
		protected set:
			_title = value
	_title as string

But does not emit what is expected. It does not emit the setter as 'protected' but as 'public'.
Only the 'master' property visibility is taken into account.

Activity

Hide
Cedric Vivier added a comment -

Actually the whole handling of getter/setter visibility is borken.
CheckMembersProtectionLevelStep checks only for the access relative to the root property node, so with either getter or setter different than the 'root' property node, a MethodAccessException is thrown by the runtime.

Show
Cedric Vivier added a comment - Actually the whole handling of getter/setter visibility is borken. CheckMembersProtectionLevelStep checks only for the access relative to the root property node, so with either getter or setter different than the 'root' property node, a MethodAccessException is thrown by the runtime.
Hide
Cedric Vivier added a comment -

Fixed in rev. 3070

Show
Cedric Vivier added a comment - Fixed in rev. 3070

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: