I finally found a guilty commit for this failure.
This was Tony's r592434 commit.

I'm not text guru but as far as I understood Tony has removed all the
formatting functionality from text module and delegated it to ICU.
As not text guru I'm not sure is this strategically correct move or not...
Thoughts?

As a result java.text.DateFormat.formatToCharacterIterator method
starts return the array of  com.ibm.icu.text.DateFormat.Field
instances instead of java.text.DateFormat.Field.
I can not say that this is strictly contradicts the spec. But I would
say that it contradicts "feeling from spec" :)
So I'd prefer this to be fixed.
Probably now we have more places like this...

Thoughts?

Thanks in advance.

SY, Alexey

2007/11/7, Alexey Petrenko <[EMAIL PROTECTED]>:
> https://issues.apache.org/jira/browse/HARMONY-5085 to track...
>
> 2007/11/7, Alexey Petrenko <[EMAIL PROTECTED]>:
> > Guys,
> >
> > looks like we have new stable swing tests failure:
> > InternationalFormatterRTest.testIncrementDecrement
> >
> > com.ibm.icu.text.DateFormat$Field
> > java.lang.ClassCastException: com.ibm.icu.text.DateFormat$Field
> > at 
> > org.apache.harmony.awt.text.TextUtils.getCalendarField(TextUtils.java:1067)
> > at 
> > javax.swing.text.InternationalFormatter$IncrementAction.handleText(InternationalFormatter.java:68)
> > at 
> > javax.swing.text.InternationalFormatter$IncrementAction.actionPerformed(InternationalFormatter.java:59)
> > at 
> > javax.swing.text.InternationalFormatterRTest.testIncrementDecrement(InternationalFormatterRTest.java:92)
> > at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java)
> > at javax.swing.BasicSwingTestCase.runBareSuper(BasicSwingTestCase.java:117)
> > at javax.swing.SwingTestCase$1.run(SwingTestCase.java:45)
> > at java.awt.event.InvocationEvent.runAndNotify(InvocationEvent.java:92)
> > at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:81)
> > at java.awt.EventQueueCore.dispatchEventImpl(EventQueueCore.java)
> > at java.awt.EventQueue.dispatchEvent(EventQueue.java:144)
> > at java.awt.EventDispatchThread.runModalLoop(EventDispatchThread.java:74)
> > at java.awt.EventDispatchThread.run(EventDispatchThread.java:48)
> >
> > I'd say that it looks like this test fail since our last ICU update...
> >
> > I'll take care...
> >
> > SY, Alexey
> >
>

Reply via email to