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

Incremental compiler has NPE when renaming a class and performing a compile.

    XMLWordPrintableJSON

Details

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

    Description

      Steps to reproduce:
      1. Create a simple Flex project and one component (i.e. MyButton.mxml)
      2. Create an instance of the component in the main app
      3. Compile project, make sure it compiles fine
      4. Rename the component (e.g. MyButtom.mxml to MyComponent.mxml), update references as well
      5. Compile

      Actual Results:

      Uncaught exception in compiler
      Throwable: java.lang.NullPointerException
      java.lang.NullPointerException
      at flex2.compiler.SourcePathBase.removeSource(SourcePath.java:529)
      at flex2.compiler.CompilerAPI.validateCompilationUnits(CompilerAPI.java:2181)
      at flex2.compiler.CompilerAPI.validateCompilationUnits(CompilerAPI.java:1863)
      at flex2.tools.oem.Application.compile(Application.java:903)
      at flex2.tools.flexbuilder.BuilderApplication.compile(BuilderApplication.java:359)
      at com.adobe.flexbuilder.multisdk.compiler.internal.ASApplicationBuilder$MyBuilder.mybuild(ASApplicationBuilder.java:276)

      Expected Results:

      No error

      Workaround (if any):

      Clean compile

      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: