Lines 135-143
Link Here
|
135 |
this.initialization.generateCode(currentScope, codeStream, true); |
135 |
this.initialization.generateCode(currentScope, codeStream, true); |
136 |
// 26903, need extra cast to store null in array local var |
136 |
// 26903, need extra cast to store null in array local var |
137 |
if (this.binding.type.isArrayType() |
137 |
if (this.binding.type.isArrayType() |
138 |
&& (this.initialization.resolvedType == TypeBinding.NULL // arrayLoc = null |
138 |
&& ((this.initialization instanceof CastExpression) // arrayLoc = (type[])null |
139 |
|| ((this.initialization instanceof CastExpression) // arrayLoc = (type[])null |
139 |
&& (((CastExpression)this.initialization).innermostCastedExpression().resolvedType == TypeBinding.NULL))){ |
140 |
&& (((CastExpression)this.initialization).innermostCastedExpression().resolvedType == TypeBinding.NULL)))){ |
|
|
141 |
codeStream.checkcast(this.binding.type); |
140 |
codeStream.checkcast(this.binding.type); |
142 |
} |
141 |
} |
143 |
codeStream.store(this.binding, false); |
142 |
codeStream.store(this.binding, false); |