Closed Bug 420175 Opened 17 years ago Closed 16 years ago

AVM2 - with JIT disabled, initialization of superclass's private const member throws ReferenceError

Categories

(Tamarin Graveyard :: Virtual Machine, defect, P3)

defect

Tracking

(Not tracked)

VERIFIED WORKSFORME
Future

People

(Reporter: cpeyer, Assigned: lhansen)

References

Details

(Keywords: flashplayer)

as: package { public class SuperClass { public function SuperClass(s:String) { } private const m_sprite:String = new String(); } } package { public class SubClass extends SuperClass { public function SubClass(s:String) { super(s); } } } package { public class ConstMemberMIRBug { public function ConstMemberMIRBug() { var foo:SubClass = new SubClass("foo"); } } var c = new ConstMemberMIRBug(); } result (with -Dinterp flag): ReferenceError: Error #1074: Illegal write to read-only property SuperClass::m_sprite on SubClass. at SuperClass() at SubClass() at ConstMemberMIRBug() at global$init()
Target Milestone: --- → Future
Status: NEW → ASSIGNED
Keywords: flashplayer
Status: ASSIGNED → NEW
Flags: in-testsuite?
Flags: flashplayer-qrb?
Assignee: nobody → rreitmai
Status: NEW → ASSIGNED
Flags: flashplayer-qrb?
Priority: -- → P3
Flags: flashplayer-qrb+
Blocks: 478870
Assignee: rreitmai → lhansen
Tried current redux with -Dinterp, and compiling with recent ASC with and without -optimize. Added some print statements in the main program that verified that the program ran to the end as it was supposed to.
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → WORKSFORME
Status: RESOLVED → VERIFIED
Verified works w/ avm d2765. Removed in-testsuite flag.
Flags: in-testsuite?
You need to log in before you can comment on or make changes to this bug.