News for hackers. Stuff that matters.
Re:Groovy Array: it just keeps going...and going... by akronim on Monday November 29, 2010 @04:32PM (#1951858)
They're aiming for compatibility with Java 1.4, which doesn't have varargs. In java 1.5 you could just write

  public static Object[] createArray(Object... args) {
    return args;
  }
Re:Groovy Array: it just keeps going...and going... by zmmmmm on Monday November 29, 2010 @06:44PM (#1952348)
I remember discovering this and deciding to eliminate it as part of an effort to compress the groovy jar file a bit more (long story, but basically I was running some Groovy in an applet, every byte counts).

I thought I'd found a jackpot and that killing this class would surely eliminate a nice chunk of byte code. To my amazement it makes almost no difference. With pack200 the redundancy of all these methods is totally stripped out. It took me an hour or so of work and I think it made less than 200 bytes difference in the end.

Re:Groovy Array: it just keeps going...and going... by abp on Monday November 29, 2010 @06:25PM (#1952278)
So just another missing line of essential commentary?