2009-04-01から1ヶ月間の記事一覧

思いついたこと

寝ようと思った瞬間になんか思いつくのはもはや呪い。 @Dao(Hoge.class) public interface HogeDao { @Read Hoge get( // WHERE email = :email AND ANCESTOR = :parentKey @Parent String parentKey, String email ); @Read @OrderBy("date asc") List<Hoge> get(</hoge>…

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>

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

f()の中身はJDTではすべてOK、javacでは全滅。なんか代入コンテキストの判定がおかしくない? private void f() { if (t()) {} assert t(); int a = t() ? 1 : 2; for (;t();) {} while (t()) {} do {} while(t()); System.out.println((new int[t()])[t()])…