Closed Bug 473628 Opened 16 years ago Closed 16 years ago

Change to fix a private member access error in avmplus::List class

Categories

(Tamarin Graveyard :: Virtual Machine, defect)

Other
Other
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: rishah, Unassigned)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.5) Gecko/2008120121 Firefox/3.0.5
Build Identifier: 

In function List::become() the following usage
"list.len"

results in an private member access error in one compiler since "len" is a private member.

Change is to use the accessor function "size()" instead to avoid this error.

Reproducible: Always
Attachment #357001 - Flags: review?(stejohns)
Attachment #357001 - Flags: review?(stejohns) → review+
Comment on attachment 357001 [details] [diff] [review]
Patch for the fix [v1]

in theory, should be legal in all compilers since "list" is of same type as "this" and so private members should be accessible, but this fix looks fine
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: