Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-22551

Uncaught exception in compiler causes FB to get "Internal Error", must relaunch.

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • Adobe Flex SDK 4.5 (Release)
    • MXML Compiler
    • None
    • Affected OS(s): All OS Platforms
      Browser: Firefox 3.x
      Language Found: English

    Description

      [All these steps assume you're using Flash Builder]

      Steps to reproduce:
      1. Create a new Flex project.
      2. Create a new AS Class named "test"
      3. In the AS Class, modify it to extend itself – i.e. test extends test
      4. In the MXML App, create a script block with the following:

      <fx:Script>
      <![CDATA[
      public function foo():void

      { new test(); }

      ]]
      >
      </fx:Script>

      5. Save/Build.

      Actual Results:
      Flash Builder will popup a dialog about an uncaught exception in the compiler (see screen shots). Eclipse then encourages you to exit the workbench (basically you are forced to relaunch FB).

      !ENTRY com.adobe.flexbuilder.project 4 43 2009-12-22 11:37:26.035
      !MESSAGE Uncaught exception in compiler
      !STACK 0
      java.lang.StackOverflowError
      at flex2.compiler.as3.binding.ClassInfo.getSkinParts(ClassInfo.java:143)
      at flex2.compiler.as3.binding.ClassInfo.getSkinParts(ClassInfo.java:143)
      at flex2.compiler.as3.binding.ClassInfo.getSkinParts(ClassInfo.java:143)
      at flex2.compiler.as3.binding.ClassInfo.getSkinParts(ClassInfo.java:143) etc...

      Expected Results:
      This exception should be handled gracefully within the compiler so that a user who types something like this accidentally doesn't get nasty error messages and have to reboot Flash Builder.

      Workaround (if any):

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            adobejira Adobe JIRA
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment