alice-teacher Bug in vehicle property, joints, and setPersonResource

Vanderhyde, James vanderhyde at sxu.edu
Thu Feb 4 18:44:25 EST 2021


My student uncovered a bug in Alice 3 (3.6.0.1+build.500, confirmed both Windows and Mac). He was working on a homework assignment that I gave that is similar to “Magnet Fun” from the Dann-Cooper-Pausch book. Here are the steps to reproduce the bug:
1. Create a new project.
2. Add an object (I used Mjolnir).
3. Add an adultPerson.
4. Set the vehicle of Mjolnir to the person’s wrist joint.
5. In myFirstMethod, call this.adultPerson.setAdultPersonResource with any look.
6. Run the project.
Mjolnir disappears.

See attached Alice project.
—
James Vanderhyde
Associate Professor and Department Chair
Computer Science
Saint Xavier University
3700 W. 103rd St.
Chicago, IL 60655
773-298-3454
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.andrew.cmu.edu/pipermail/alice-teachers/attachments/20210204/24d540e5/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Person resource and vehicle.a3p
Type: application/octet-stream
Size: 236446 bytes
Desc: Person resource and vehicle.a3p
URL: <http://lists.andrew.cmu.edu/pipermail/alice-teachers/attachments/20210204/24d540e5/attachment-0001.obj>


More information about the alice-teachers mailing list