History | Log In     View a printable version of the current page.  
Issue Details (XML)

Key: ASC-2901
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: None None
Assignee: Erik Tierney
Reporter: benoit Kogut
Votes: 1
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
ActionScript Compiler (ASC)

crash when declaring and setting a var in a single line from within a switch statement

Created: 10/28/07 06:20 PM   Updated: 10/03/08 03:54 PM
Component/s: Core Language
Security Level: Public (All JIRA Users )

File Attachments: 1. File bug.as (0.5 kb)
2. File xml_test.mxml (2 kb)


Severity: Crash/Hang
Reproducibility: Every Time
Discoverability: Low
Found in Version: Flash 9.0
Milestone: Player 10 - Code Complete
Affected OS(s): All OS Platforms
Steps to Reproduce:
Steps to reproduce:
1. excerpt from enclosed source code :

    switch (param)
    {
        case 'one' :
            // the following line throws an #1010 Error
            var operations1:XML = company.department.(@title == "Operations")[0];
            trace(operations1);
            break;
    
        case 'two' :
            // no crash here
            var operations2:XML;
            operations2 = company.department.(@title == "Operations")[0];
            trace(operations2);
            break;
    } // switch (a)

2.
3.
 
 Actual Results:
 crash
 
 Expected Results:
 no crash
 
 Workaround (if any):
 within a switch case, do not declare and set a variable on a single line
 
 
Language Found: English
Bugbase Id: none
Triaged: Yes
Regression: No
Resolved by: Peter Donovan
Participants: benoit Kogut, Brent Baker, Erik Tierney and Peter Donovan
JDK: Sun 1.5.x


 All   Comments      Sort Order:
Brent Baker - [11/08/07 01:49 PM ]
Confirmed issue and added a pure AS testcase

Brent Baker - [11/15/07 09:14 AM ]
TypeError: Error #1010: A term is undefined and has no properties.
        at global$init()

Peter Donovan - [10/03/08 03:54 PM ]
works