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

uncaught exception on missing parens

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Apache FalconJX 0.7.0
    • Apache FalconJX 0.8.0
    • Falcon
    • None

    Description

      The following code generates (correctly) generates an error (because it's missing the parenthesis in the function definition):
      public function parseCard8:int
      {
      return this.parseByte();
      }

      When running compc from the command line (using ant) I get the following error:
      Syntax error: Expected PAREN_OPEN but got ':'

      When building in Flash Builder, I get the following (unhelpful) error:
      java.lang.ClassCastException: org.apache.flex.compiler.parsing.IASToken$ASTokenKind cannot be cast to java.lang.String

      I'm assuming PAREN_OPEN needs to be converted to a string: "(".

      Attachments

        Activity

          People

            aharui Alex Harui
            harbs Harbs
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: