Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
Adobe Flex SDK Previous
-
None
-
None
-
Affected OS(s): Mac
Affected OS(s): Mac OS 10.5
Language Found: English
Description
Steps to reproduce:
1) Create a Flex 4 project using SDK 4.0.0.9864
2) Create a class that overrides any setter function
override public function set fill( value:IGraphicsFill ):void {
}
3) Compile the project using Ant or FlashBuilder
Actual Results:
[mxmlc] Error: null
[mxmlc] java.lang.NullPointerException
[mxmlc] at flex2.compiler.as3.binding.BindableSecondPassEvaluator.processGetterMetaData(BindableSecondPassEvaluator.java:1099)
[mxmlc] at flex2.compiler.as3.binding.BindableSecondPassEvaluator.modifySyntaxTree(BindableSecondPassEvaluator.java:990)
[mxmlc] at flex2.compiler.as3.binding.BindableSecondPassEvaluator.evaluate(BindableSecondPassEvaluator.java:218)
[mxmlc] at macromedia.asc.parser.ClassDefinitionNode.evaluate(ClassDefinitionNode.java:106)
[mxmlc] at flash.swf.tools.as3.EvaluatorAdapter.evaluate(EvaluatorAdapter.java:349)
[mxmlc] at macromedia.asc.parser.StatementListNode.evaluate(StatementListNode.java:60)
[mxmlc] at flash.swf.tools.as3.EvaluatorAdapter.evaluate(EvaluatorAdapter.java:934)
[mxmlc] at macromedia.asc.parser.ProgramNode.evaluate(ProgramNode.java:80)
[mxmlc] at flex2.compiler.as3.genext.GenerativeExtension.parse2(GenerativeExtension.java:111)
[mxmlc] at flex2.compiler.as3.As3Compiler.parse2(As3Compiler.java:433)
[mxmlc] at flex2.compiler.CompilerAPI.parse2(CompilerAPI.java:2927)
[mxmlc] at flex2.compiler.CompilerAPI.parse2(CompilerAPI.java:2884)
[mxmlc] at flex2.compiler.CompilerAPI.batch2(CompilerAPI.java:460)
[mxmlc] at flex2.compiler.CompilerAPI.batch(CompilerAPI.java:1274)
[mxmlc] at flex2.compiler.CompilerAPI.compile(CompilerAPI.java:1488)
[mxmlc] at flex2.compiler.CompilerAPI.compile(CompilerAPI.java:1375)
[mxmlc] at flex2.tools.Mxmlc.mxmlc(Mxmlc.java:282)
[mxmlc] at flex2.tools.Mxmlc.main(Mxmlc.java:58)
Expected Results:
To compile
Workaround (if any):
Overriding the getter seems to fix the problem:
override public function get fill() : IGraphicsFill
{ return super.fill; }