title: Why can't I lazy-initialize static long array like this in java?
body: <pre><code>private static final long[] reservedFromIps;
  
  static {
      reservedFromIps = {0l, 167772160l, 1681915904l, 
          2130706432l, 2851995648l, 2886729728l, 3221225984l, 3227017984l, 3232235520l, 
          3323068416l, 3325256704l, 3405803776l, 3758096384l, 4026531840l, 4294967295l}; 
  }
  </code></pre>
  
  <p>The error is "illegal start of an expression, not a statement, ; expected"</p>
  
  <p>whereas the following works fine :</p>
  
  <pre><code>private static final long[] reservedFromIps = {0l, 167772160l, 1681915904l, 
      2130706432l, 2851995648l, 2886729728l, 3221225984l, 3227017984l, 3232235520l, 
      3323068416l, 3325256704l, 3405803776l, 3758096384l, 4026531840l, 4294967295l}; 
  </code></pre>