frankly I am not sure this is a bug. Since vargs are involved things are more difficult. What I can say is, that the int[] is cast to an Object[]. Either dynamically by the runtime in normal Groovy, or through static code using ScriptBytecodeAdapter.castToType with Object[]. Since @CompileStatic only mimics the dynamic code I am unsure as of if to classify this as a static compilation bug.

bye blackdrag

Am 01.10.2015 03:08, schrieb Edinson E. Padrón Urdaneta:
Should I open a jira issue? I'm not familiar with the procedure.

On Mon, Sep 28, 2015 at 3:06 AM, Edinson E. Padrón Urdaneta
<edinson.padron.urdan...@gmail.com
<mailto:edinson.padron.urdan...@gmail.com>> wrote:

    I think (and I can be very wrong) what happens is that
    `Arrays.toString(myIntArray)`is transformed
    to`Arrays.toString(myIntArray as Integer[])`explaining why the
    original array and the list that should be backed by it are not
    bound at all. It's just an hypotheses, of course.




--
Jochen "blackdrag" Theodorou
blog: http://blackdragsview.blogspot.com/

Reply via email to