2009-04-13から1日間の記事一覧

Least Containing Type Argument の計算がおかしい?

めも。 where lcta() is the the least containing type argument function defined (assuming U and V are type expressions) as:lcta(U, V) = U if U = V, ? extends lub(U, V) otherwise lcta(U, ? extends V) = ? extends lub(U, V) lcta(U, ? super V) …

SunのコンパイラとEclipse JDTで動きが違う(7)

下記はJDTでエラー。 static void f() { int[][] a = null; int[][][] b = null; Object[] tt = tt(a, b); // error@JDT } static <T> T tt(T a, T b) { return a; } 次元数が違うプリミティブの配列型を渡したときにエラーになる。</t>