jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject [jmeter] branch master updated: Revert change introduced by commit b2d497f36cb8eb057939138502dd2b7fe3c3e6ff to avoid java.lang.ClassFormatError: Illegal field name "org.apache.jorphan.gui.MenuScroller$this" in class org/apache/jorphan/gui/MenuScroller$MenuScrollTimer
Date Fri, 04 Oct 2019 08:42:14 GMT
This is an automated email from the ASF dual-hosted git repository.

pmouawad pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jmeter.git


The following commit(s) were added to refs/heads/master by this push:
     new d4a3bdb  Revert change introduced by commit b2d497f36cb8eb057939138502dd2b7fe3c3e6ff
to avoid java.lang.ClassFormatError: Illegal field name "org.apache.jorphan.gui.MenuScroller$this"
in class org/apache/jorphan/gui/MenuScroller$MenuScrollTimer
d4a3bdb is described below

commit d4a3bdbba331c55154f3a56c8c1b64c2623c427e
Author: pmouawad <p.mouawad@ubik-ingenierie.com>
AuthorDate: Fri Oct 4 10:42:06 2019 +0200

    Revert change introduced by commit
    b2d497f36cb8eb057939138502dd2b7fe3c3e6ff to avoid
    java.lang.ClassFormatError: Illegal field name
    "org.apache.jorphan.gui.MenuScroller$this" in class
    org/apache/jorphan/gui/MenuScroller$MenuScrollTimer
---
 .../src/main/java/org/apache/jorphan/gui/MenuScroller.java    | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/src/jorphan/src/main/java/org/apache/jorphan/gui/MenuScroller.java b/src/jorphan/src/main/java/org/apache/jorphan/gui/MenuScroller.java
index e404f59..af17415 100644
--- a/src/jorphan/src/main/java/org/apache/jorphan/gui/MenuScroller.java
+++ b/src/jorphan/src/main/java/org/apache/jorphan/gui/MenuScroller.java
@@ -22,6 +22,8 @@ import java.awt.Color;
 import java.awt.Component;
 import java.awt.Dimension;
 import java.awt.Graphics;
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
 import java.awt.event.MouseWheelEvent;
 import java.awt.event.MouseWheelListener;
 
@@ -621,9 +623,12 @@ public class MenuScroller {
         private static final long serialVersionUID = 1;
 
         public MenuScrollTimer(final int increment, int interval) {
-            super(interval, e -> {
-                firstIndex += increment;
-                refreshMenu();
+            super(interval, new ActionListener() {
+                @Override
+                public void actionPerformed(ActionEvent e) {
+                    firstIndex += increment;
+                    refreshMenu();
+                }
             });
         }
     }


Mime
View raw message