apache / apache/grails-core

ClassFormatError: Duplicate method name "findViewConfigPropertyDescriptor" w

Open
#14,283 0 comments 0 reactions 0 assignees View on GitHub
relates-to: grails-views
Dominant language
Groovy
Stars
2.9k
Forks
975
Avg merge
1d 22h
Merged PRs (30d)
92

Description

### Steps to reproduce:

- Clone branch: https://github.com/grails/grails-views/tree/issue-194
- `./gradlew views-functional-tests-plugin:compileGsonViews`

### Actual behaviour:

```
java.lang.ClassFormatError: Duplicate method name "findViewConfigPropertyDescriptor" with signature "()[Ljava.beans.PropertyDescriptor;" in class file grails/views/TestClass
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at grails.views.GenericViewConfigurationSpec.test setting of boolean(GenericViewConfigurationSpec.groovy:14)
```

This commit should be reverted: https://github.com/grails/grails-views/commit/9bc0bbb7de2f2a26f7643e3d6c5a3d13948c15f1

Contributor guide

Open the contributing guide

Research direction

Start with the issue-194 branch and the change introduced by commit 9bc0bbb7de2f2a26f7643e3d6c5a3d13948c15f1. Run ./gradlew views-functional-tests-plugin:compileGsonViews and inspect the duplicate findViewConfigPropertyDescriptor failure in grails/views/TestClass. Done means the command completes without the ClassFormatError and the affected test passes.

Written by the indexing model from the issue text.

Assessment

Domain
backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.