Accueil > Projets > ScientificPad / MathMLPad [fr] > Java un gros problème ! (2)

Java un gros problème ! (2)

Voilà c’est fait la partie du code JSE8 en cause est identifiée ?

samedi 1er novembre 2014, par ScientificWare

La méthode "forwardUpdate" de javax.swing.text a été réécrite dans JSE8 :

/** @inheritDoc */
@Override
protected void forwardUpdate(DocumentEvent.ElementChange ec,
DocumentEvent e, Shape a, ViewFactory f)
calculateUpdateIndexes(e) ;
// Send update event to all views followed by the changed place.
lastUpdateIndex = Math.max((getViewCount() - 1), 0) ;
for (int i = firstUpdateIndex ; i <= lastUpdateIndex ; i++)
View v = getView(i) ;
if (v != null)
Shape childAlloc = getChildAllocation(i, a) ;
forwardUpdateToView(v, e, childAlloc, f) ;


Alors que les vues ajoutées ne faisaient pas l’objet d’une demande de mise à jour dans JSE7, ce n’est plus le cas dans JSE8 comme le montre le code ci-dessus.


Je ne vois pas comment corriger cela, d’où la rédaction d’un rapport de bug. On verra bien ce que celui-là deviendra ;-)

« Your Report (Review ID : JI-9016245) - Duplicating of Views when we insert these Views in an other View.
De Bug-Report-Daemon_WW@ORACLE.COMAdd contact Date Aujourd’hui 20:32

Dear Java Developer,

Thank you for reporting this issue.

We are evaluating this report and have stored this with an Review ID : JI-9016245. In the event this report is determined as a defect or enhancement request, it will be referenced with a new Bug ID and will be listed on Bugs.java.com. For other related issues, please visit our Bug Database at http://bugs.java.com.

We will try to process all newly posted bugs in a timely manner, but we make no promises about the amount of time in which a bug will be fixed. If you just reported a bug that could have a major impact on your project, consider using one of the technical support offerings available at Oracle Support.

Thanks again for your submission !

Regards,
Java Developer Support
 »


La correction a été apportée en toute discrétion (pas de retour de la part d’Oracle), j’ai découvert en installant la dernière version de Java SE (Java SE 8u40) que ce problème avait été résolu. Mon rapport a été finalement identifié sous le code bug_id : 8065080.

Mais pour suivre son traitement, il faut se rendre là JDK-8065080 Duplicating of Views when we insert these Views in an other View.