Request for Review: 7116914 (Miscellaneous warnings (sun.text))

Alan Bateman Alan.Bateman at
Sat Dec 3 22:07:38 UTC 2011

On 02/12/2011 21:53, Stuart Marks wrote:
> Actually the original code is a little odd, as it returns an instance 
> of an anonymous subclass of AttributedCharacterIterator.Attribute, 
> instead of an instance of AttributedCharacterIterator.Attribute 
> itself. I don't if this is right or wrong. s'marks 
AttributedCharacterIterator.Attribute's ctor is protected. As 
background, the reason for this part of the code is to allow for the 
possibility of modularized JDK where the "desktop" module (think 
AWT/Swing and friends) is not installed. Even in that case I don't think 
you can get a reference to these "fake" attributes so the 
serialVersionUID shouldn't matter.


More information about the core-libs-dev mailing list