vlsi commented on pull request #694:
URL: https://github.com/apache/jmeter/pull/694#issuecomment-1030783752


   `RSyntaxTextArea` is not always compatible with dynamic kerning :-/
   
   ```
   javax.swing.text.BadLocationException: Position not represented by view
           at 
org.fife.ui.rsyntaxtextarea.WrappedSyntaxView.modelToView(WrappedSyntaxView.java:770)
           at 
java.desktop/javax.swing.plaf.basic.BasicTextUI$RootView.modelToView(BasicTextUI.java:1605)
           at 
java.desktop/javax.swing.plaf.basic.BasicTextUI.modelToView(BasicTextUI.java:1110)
           at 
java.desktop/javax.swing.plaf.basic.BasicTextUI.modelToView(BasicTextUI.java:1087)
           at 
java.desktop/javax.swing.plaf.basic.BasicTextUI.modelToView(BasicTextUI.java:1063)
           at 
java.desktop/javax.swing.text.JTextComponent.modelToView(JTextComponent.java:1392)
           at 
org.fife.ui.rtextarea.RTextAreaBase.possiblyUpdateCurrentLineHighlightLocation(RTextAreaBase.java:754)
           at 
org.fife.ui.rtextarea.RTextArea.fireCaretUpdate(RTextArea.java:611)
           at 
org.fife.ui.rsyntaxtextarea.RSyntaxTextArea.fireCaretUpdate(RSyntaxTextArea.java:874)
           at 
org.fife.ui.rtextarea.RTextAreaBase.forceCurrentLineHighlightRepaint(RTextAreaBase.java:310)
           at 
org.fife.ui.rsyntaxtextarea.RSyntaxTextArea.setFont(RSyntaxTextArea.java:2601)
           at 
org.apache.jorphan.gui.ui.KerningOptimizer.configureKerning(KerningOptimizer.java:50)
           at 
org.apache.jorphan.gui.ui.KerningOptimizer$DisableKerningForLargeTexts.changedUpdate(KerningOptimizer.java:90)
           at 
java.desktop/javax.swing.text.AbstractDocument.fireChangedUpdate(AbstractDocument.java:232)
           at 
org.fife.ui.rsyntaxtextarea.RSyntaxDocument.updateLastTokensBelow(RSyntaxDocument.java:618)
           at 
org.fife.ui.rsyntaxtextarea.RSyntaxDocument.fireRemoveUpdate(RSyntaxDocument.java:253)
           at 
java.desktop/javax.swing.text.AbstractDocument.handleRemove(AbstractDocument.java:628)
           at 
java.desktop/javax.swing.text.AbstractDocument.remove(AbstractDocument.java:596)
           at 
java.desktop/javax.swing.text.AbstractDocument.replace(AbstractDocument.java:672)
           at 
java.desktop/javax.swing.text.JTextComponent.setText(JTextComponent.java:1729)
           at 
org.apache.jmeter.gui.util.JSyntaxTextArea.setInitialText(JSyntaxTextArea.java:296)
           at 
org.apache.jmeter.visualizers.RequestViewRaw.clearData(RequestViewRaw.java:82)
           at 
org.apache.jmeter.visualizers.RequestPanel.clearData(RequestPanel.java:105)
           at 
org.apache.jmeter.visualizers.SamplerResultTab.clearData(SamplerResultTab.java:215)
           at 
org.apache.jmeter.visualizers.SamplerResultTab.setupTabPane(SamplerResultTab.java:235)
           at 
org.apache.jmeter.visualizers.ViewResultsFullVisualizer.valueChanged(ViewResultsFullVisualizer.java:395)
           at 
org.apache.jmeter.visualizers.ViewResultsFullVisualizer.valueChanged(ViewResultsFullVisualizer.java:373)
           at java.desktop/javax.swing.JTree.fireValueChanged(JTree.java:2967)
           at 
java.desktop/javax.swing.JTree$TreeSelectionRedirector.valueChanged(JTree.java:3456)
           at 
java.desktop/javax.swing.tree.DefaultTreeSelectionModel.fireValueChanged(DefaultTreeSelectionModel.java:641)
           at 
java.desktop/javax.swing.tree.DefaultTreeSelectionModel.notifyPathChange(DefaultTreeSelectionModel.java:1111)
           at 
java.desktop/javax.swing.tree.DefaultTreeSelectionModel.setSelectionPaths(DefaultTreeSelectionModel.java:297)
           at 
java.desktop/javax.swing.tree.DefaultTreeSelectionModel.setSelectionPath(DefaultTreeSelectionModel.java:191)
           at java.desktop/javax.swing.JTree.setSelectionPath(JTree.java:1656)
           at 
java.desktop/javax.swing.plaf.basic.BasicTreeUI.selectPathForEvent(BasicTreeUI.java:2736)
           at 
java.desktop/javax.swing.plaf.basic.BasicTreeUI$Handler.handleSelection(BasicTreeUI.java:4016)
           at 
java.desktop/javax.swing.plaf.basic.BasicTreeUI$Handler.mousePressed(BasicTreeUI.java:3955)
           at 
java.desktop/java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:287)
           at 
java.desktop/java.awt.Component.processMouseEvent(Component.java:6632)
           at 
java.desktop/javax.swing.JComponent.processMouseEvent(JComponent.java:3342)
           at java.desktop/java.awt.Component.processEvent(Component.java:6400)
           at java.desktop/java.awt.Container.processEvent(Container.java:2263)
           at 
java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5011)
           at 
java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321)
           at java.desktop/java.awt.Component.dispatchEvent(Component.java:4843)
           at 
java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4918)
           at 
java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4544)
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to