[jedit:bugs] #4139 jEdit 5.7: bundled Macro Java/Make_Get_and_Set_Methods doesn't work

Eric Le Lay via jEdit-devel <[email protected]> Wed, 23 Oct 2024 16:48:38 -0000
Newsgroups gmane.editors.jedit.devel
Message-ID </p/jedit/bugs/4139/4967c216e7cec0804f331448a8874de84e2582a5.bugs@jedit.p.sourceforge.net>
Hi Robert,
it works for me when selecting the text `public int toto;` that I typed in a java file.
Does it work for you like that?


---

**[bugs:#4139] jEdit 5.7: bundled Macro Java/Make_Get_and_Set_Methods doesn't work**

**Status:** open
**Group:** minor bug
**Created:** Wed Oct 09, 2024 08:50 PM UTC by Robert Schwenn
**Last Updated:** Wed Oct 09, 2024 08:50 PM UTC
**Owner:** nobody


Hi, 
macro Java/Make_Get_and_Set_Methods.bsh shows a dialog, but has no effect after confirming due to exception:

[error] AWT-EventQueue-0: Exception in thread "AWT-EventQueue-0" 
[error] AWT-EventQueue-0: java.lang.IndexOutOfBoundsException: Index 1 out of bounds for length 1
[error] AWT-EventQueue-0:  at java.base/jdk.internal.util.Preconditions.outOfBounds(Unknown Source)

The macro doesn't work in jEdit 5.6, too. For me, it doesn't matter whether or not some text is selected when invoking the macro.

System: jEdit 5.7, Eclipse Adoptium JRE 21.0.4+7-LTS, Windows 11 Pro 23H2



---

Sent from sourceforge.net because [email protected] is subscribed to https://sourceforge.net/p/jedit/bugs/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/jedit/admin/bugs/options.  Or, if this is a mailing list, you can unsubscribe from the mailing list.

-- 
-----------------------------------------------
jEdit Developers' List
[email protected]
https://lists.sourceforge.net/lists/listinfo/jedit-devel