--- a/langtools/src/share/classes/com/sun/tools/javac/comp/TransTypes.java Tue Oct 09 19:10:00 2012 -0700
+++ b/langtools/src/share/classes/com/sun/tools/javac/comp/TransTypes.java Tue Oct 09 19:31:58 2012 -0700
@@ -132,17 +132,21 @@
* Then, coerce to some given target type unless target type is null.
* This operation is used in situations like the following:
*
+ * <pre>{@code
* class Cell<A> { A value; }
* ...
* Cell<Integer> cell;
* Integer x = cell.value;
+ * }</pre>
*
* Since the erasure of Cell.value is Object, but the type
* of cell.value in the assignment is Integer, we need to
* adjust the original type of cell.value to Object, and insert
* a cast to Integer. That is, the last assignment becomes:
*
+ * <pre>{@code
* Integer x = (Integer)cell.value;
+ * }</pre>
*
* @param tree The expression tree whose type might need adjustment.
* @param erasedType The expression's type after erasure.