This is an automated email from the ASF dual-hosted git repository.
emilles pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git
The following commit(s) were added to refs/heads/master by this push:
new 39168b9ba1 GROOVY-7099: add test case
39168b9ba1 is described below
commit 39168b9ba15e09a77df8fb1dc87854dd691a535e
Author: Eric Milles <[email protected]>
AuthorDate: Fri Jan 23 10:10:08 2026 -0600
GROOVY-7099: add test case
---
src/test/groovy/bugs/Groovy7099.groovy | 45 ++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
diff --git a/src/test/groovy/bugs/Groovy7099.groovy
b/src/test/groovy/bugs/Groovy7099.groovy
new file mode 100644
index 0000000000..0dc61c63e3
--- /dev/null
+++ b/src/test/groovy/bugs/Groovy7099.groovy
@@ -0,0 +1,45 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package bugs
+
+import org.junit.jupiter.api.Test
+
+import static groovy.test.GroovyAssert.assertScript
+
+final class Groovy7099 {
+
+ @Test
+ void testPropertyMissingViaCategory() {
+ assertScript '''
+ class Pogo {
+ }
+ @Category(Pogo)
+ class PogoExtension {
+ Object propertyMissing(String name) {
+ return "missing $name".toString()
+ }
+ }
+
+ def pogo = new Pogo()
+ use (PogoExtension) {
+ assert pogo.no == 'missing no'
+ }
+ '''
+ }
+}