[ 
https://issues.apache.org/jira/browse/FLEX-33254?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Philippe Le Berre updated FLEX-33254:
-------------------------------------

    Description: 
An invalid import statement like import org.example.util.printf causes compc to 
always crash in what sounds like an ArrayOutOfBoundIndexException. The error is 
reproduced in 4.6 and 4.8. 

----- Code causing the issue ---

var message:XMLList = (id > MAX_RESERVED_ID ? xmlErrors.error.(@code == id) : 
globalXmlErrors.error.(@code == id));

-------- compc output (using include-sources) -------
flex-libs:
    [compc] Loading configuration file /SDK/flex/4.8/frameworks/flex-config.xml
    [compc] Error: Index: 10, Size: 6
    [compc] 

BUILD FAILED


  was:
An invalid import statement like import org.example.util.printf causes compc to 
always crash in what sounds like an ArrayOutOfBoundIndexException. The error is 
reproduced in 4.6 and 4.8. 

--------------------- sample of the compc output -------
package org.example.rpc {
    import org.example.util.printf; // does not exists in directory 
org/example/util 

    public class Sample {
    }
}

-------- compc output (using include-sources) -------
flex-libs:
    [compc] Loading configuration file /SDK/flex/4.8/frameworks/flex-config.xml
    [compc] Error: Index: 10, Size: 6
    [compc] 

BUILD FAILED


        Summary: compc exception ( <cond> ? <case 1 : XML.<entity>.(@attribute 
== value) : <case2 : XML.<entity>.(@attribute == value)>)  (was: compc 
exception on bad import)
    
> compc exception ( <cond> ? <case 1 : XML.<entity>.(@attribute == value) : 
> <case2 : XML.<entity>.(@attribute == value)>)
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: FLEX-33254
>                 URL: https://issues.apache.org/jira/browse/FLEX-33254
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: MXML Compiler - Error Reporting
>    Affects Versions: Adobe Flex SDK 4.6 (Release), Apache Flex 4.8 (parity 
> release)
>         Environment: MAC OX 10.8.2 with JVM 1.6.0_33
>            Reporter: Philippe Le Berre
>            Priority: Critical
>
> An invalid import statement like import org.example.util.printf causes compc 
> to always crash in what sounds like an ArrayOutOfBoundIndexException. The 
> error is reproduced in 4.6 and 4.8. 
> ----- Code causing the issue ---
> var message:XMLList = (id > MAX_RESERVED_ID ? xmlErrors.error.(@code == id) : 
> globalXmlErrors.error.(@code == id));
> -------- compc output (using include-sources) -------
> flex-libs:
>     [compc] Loading configuration file 
> /SDK/flex/4.8/frameworks/flex-config.xml
>     [compc] Error: Index: 10, Size: 6
>     [compc] 
> BUILD FAILED

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to