You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Josh Tynjala (JIRA)" <ji...@apache.org> on 2016/11/22 21:31:59 UTC

[jira] [Commented] (FLEX-35183) Unclosed comment in MXML leads to infinite loop in compiler

    [ https://issues.apache.org/jira/browse/FLEX-35183?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15687958#comment-15687958 ] 

Josh Tynjala commented on FLEX-35183:
-------------------------------------

I spent an afternoon trying to figure this out by connecting a debugger. I think I understand what's wrong, but I would need to learn more about JFlex to figure out how to fix it. It appears that the code generated by RawMXMLTokenizer.lex doesn't know to break out of a loop in certain situations. It just continues looping if a comment is open and it reaches the end of the file. Basically, just reading the EOF over and over again.

I assume it's the same with the unclosed CDATA in FLEX-35184, but I did not specifically check in the debugger for that one.

> Unclosed comment in MXML leads to infinite loop in compiler
> -----------------------------------------------------------
>
>                 Key: FLEX-35183
>                 URL: https://issues.apache.org/jira/browse/FLEX-35183
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Falcon
>    Affects Versions: Apache FlexJS 0.8.0
>            Reporter: Josh Tynjala
>
> Try to compile the following MXML application:
> <?xml version="1.0" encoding="utf-8"?>
> <js:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
>     xmlns:js="library://ns.apache.org/flexjs/basic">
> 	<!--
> </js:Application>
> The compiler will get stuck in an infinite loop.
> If you close the comment with -->, the application will compile successfully.
> See also: FLEX-35184



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)