Last week, Fredrik found that I've forgotten to implement ClassValue
in the backport of jsr292.

While struggling to implement it, I've found a bug in the implementation
of the JDK. This snippet creates an infinite loop :(

        java.lang.ClassValue<Integer> cv = new 
java.lang.ClassValue<Integer>() {
             @Override
             protected Integer computeValue(Class<?> type) {
                 remove(int.class);
                 return 1;
             }
         };
         cv.get(int.class);

while this code is naughty, I think it's a legal one.

cheers,
Rémi

_______________________________________________
mlvm-dev mailing list
mlvm-dev@openjdk.java.net
http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev

Reply via email to