[ 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)