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

Complex E4X expression in ActionScript variable causes the compiler to NPE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Later
    • Adobe Flex SDK Previous
    • None
    • MXML Compiler
    • None
    • Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      1. Compile attached action script (ASTest.as) file

      Actual Result:
      java.lang.NullPointerException
      at macromedia.asc.semantics.ConstantEvaluator.PreprocessDefinitionTypeInfo(ConstantEvaluator.java:353)
      at macromedia.asc.semantics.ConstantEvaluator.PreprocessDefinitionTypeInfo(ConstantEvaluator.java:146)
      at macromedia.asc.semantics.ConstantEvaluator.PreprocessDefinitionTypeInfo(ConstantEvaluator.java:110)
      at flex2.compiler.as3.As3Compiler.analyze3(As3Compiler.java:661)
      at flex2.compiler.mxml.InterfaceCompiler.analyze3(InterfaceCompiler.java:404)
      at flex2.compiler.mxml.MxmlCompiler.analyze3(MxmlCompiler.java:244)
      at flex2.compiler.CompilerAPI.analyze(CompilerAPI.java:3084)
      at flex2.compiler.CompilerAPI.analyze(CompilerAPI.java:2977)
      at flex2.compiler.CompilerAPI.batch2(CompilerAPI.java:515)
      at flex2.compiler.CompilerAPI.batch(CompilerAPI.java:1274)
      at flex2.compiler.CompilerAPI.compile(CompilerAPI.java:1496)
      at flex2.tools.oem.Application.compile(Application.java:1188)
      at flex2.tools.oem.Application.recompile(Application.java:1133)
      at flex2.tools.oem.Application.compile(Application.java:819)
      at flex2.tools.flexbuilder.BuilderApplication.compile(BuilderApplication.java:344)
      at com.adobe.flexbuilder.multisdk.compiler.internal.ASApplicationBuilder$MyBuilder.mybuild(ASApplicationBuilder.java:319)
      at com.adobe.flexbuilder.multisdk.compiler.internal.ASApplicationBuilder.build(ASApplicationBuilder.java:129)
      at com.adobe.flexbuilder.multisdk.compiler.internal.ASBuilder.build(ASBuilder.java:198)
      at com.adobe.flexbuilder.multisdk.compiler.internal.ASItemBuilder.build(ASItemBuilder.java:70)
      at com.adobe.flexbuilder.project.compiler.internal.FlexProjectBuilder.buildItem(FlexProjectBuilder.java:575)
      at com.adobe.flexbuilder.project.compiler.internal.FlexProjectBuilder.build(FlexProjectBuilder.java:350)
      at com.adobe.flexbuilder.project.compiler.internal.FlexIncrementalBuilder.build(FlexIncrementalBuilder.java:187)
      at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:629)
      at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:172)
      at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:203)
      at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:255)
      at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:258)
      at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:311)
      at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:343)
      at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:144)
      at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:242)
      at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

      Expected Result:

      Should compile successfully

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: