Open GoogleCodeExporter opened 8 years ago
Please fix this
Original comment by brant.bo...@gmail.com
on 19 Jan 2008 at 9:02
Use <textarea> instead of <pre> using highlighting Java code that uses generic.
issue is the browser treats <T extends Item> as a <T> tag with attributes
'extends'
and 'item'
this code should work:
<textarea name="code" class="java" cols="60" rows="10">
package com.centuryminds.softreferences;
import java.util.ArrayList;
import java.util.List;
/**
* A group of {@link Item}
*/
@WebService
public class Group<T extends Item> {
private final List<T> items = new ArrayList<T>();
public void add(T item) {
items.add(item);
}
}
</textarea>
I doubt there is a fix for this when using <pre> tag since the DOM sees <T
extends
Item> as a XML tag.
Original comment by vaf...@gmail.com
on 5 Feb 2008 at 1:46
Yes, it works now, thanks!
Original comment by ffi...@gmail.com
on 26 Jun 2008 at 1:24
Original issue reported on code.google.com by
ruben...@gmail.com
on 9 Nov 2007 at 1:13