From cc80d8034e7aaf8003484583c65320e818d61342 Mon Sep 17 00:00:00 2001 From: James Daugherty Date: Sat, 14 Jun 2025 01:01:07 -0400 Subject: [PATCH] #14814 - controller and plugin resolution order --- .../DuplicateController.groovy | 26 +++++++++++++++++ .../demo/DuplicateController.groovy | 28 +++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 grails-test-examples/app1/grails-app/controllers/functionaltests/DuplicateController.groovy create mode 100644 grails-test-examples/plugins/loadfirst/grails-app/controllers/demo/DuplicateController.groovy diff --git a/grails-test-examples/app1/grails-app/controllers/functionaltests/DuplicateController.groovy b/grails-test-examples/app1/grails-app/controllers/functionaltests/DuplicateController.groovy new file mode 100644 index 00000000000..4fd9c91c221 --- /dev/null +++ b/grails-test-examples/app1/grails-app/controllers/functionaltests/DuplicateController.groovy @@ -0,0 +1,26 @@ +/* + * 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 + * + * https://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 functionaltests + +class DuplicateController { + def index() { + render text: "app controller" + } +} diff --git a/grails-test-examples/plugins/loadfirst/grails-app/controllers/demo/DuplicateController.groovy b/grails-test-examples/plugins/loadfirst/grails-app/controllers/demo/DuplicateController.groovy new file mode 100644 index 00000000000..ae78f79c2f0 --- /dev/null +++ b/grails-test-examples/plugins/loadfirst/grails-app/controllers/demo/DuplicateController.groovy @@ -0,0 +1,28 @@ +/* + * 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 + * + * https://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 demo + +class DuplicateController { + static namespace = 'theplugin' + + def index() { + render text: "plugin controller" + } +}