You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2019/04/18 12:06:44 UTC

[groovy] 01/04: fix unintended illegal access

This is an automated email from the ASF dual-hosted git repository.

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

commit 079428f1e82b1c74575d782e2b8b90b8f603f345
Author: Paul King <pa...@asert.com.au>
AuthorDate: Thu Apr 18 13:32:28 2019 +1000

    fix unintended illegal access
---
 .../groovy-swing/src/test/groovy/groovy/swing/SwingBuilderTest.groovy | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/subprojects/groovy-swing/src/test/groovy/groovy/swing/SwingBuilderTest.groovy b/subprojects/groovy-swing/src/test/groovy/groovy/swing/SwingBuilderTest.groovy
index 9e6e1b1..61537dd 100644
--- a/subprojects/groovy-swing/src/test/groovy/groovy/swing/SwingBuilderTest.groovy
+++ b/subprojects/groovy-swing/src/test/groovy/groovy/swing/SwingBuilderTest.groovy
@@ -379,8 +379,8 @@ class SwingBuilderTest extends GroovySwingTestCase {
 
             def swing = new SwingBuilder()
             swing.panel(layout: new BorderLayout()) {
-                label(id: 'label0', text: 'Name0', mnemonic: 48)
-                label(id: 'label1', text: 'Name1', mnemonic: 'N')
+                label(id: 'label0', text: 'Name0', displayedMnemonic: 48)
+                label(id: 'label1', text: 'Name1', displayedMnemonic: 'N' as char)
             }
             int expected0 = '0'
             int expected1 = 'N'