groovy / groovy/groovy-eclipse
Visibility errors when recompiling: "cannot override ... attempting to assign weaker access privileges; was public"
@eric-milles is already working on this.
Since Nov 12, 2017.
- Dominant language
- Java
- Stars
- 681
- Forks
- 197
- PR merge metrics
- No merged PRs in 30d
Description
Lately I am seeing compile errors with my Spock/Geb classes when overriding methods like setup() or cleanup() across three levels of class hierarchy:
cannot override setup() ... attempting to assign weaker access privileges; was public
The errors only occur when doing an incremental recompile, full rebuild works. They go away when I manually recompile the base class.
All methods were defined like this without calling their parent methods because Spock calls each setup method in a defined order anyway:
def setup() { ... }
Environment:
- IntelliJ IDEA 15.0.4 (commercial version)
- groovy-eclipse-batch-2.4.3-01.jar as Java & Groovy compiler
- OpenJDK Runtime Environment (Zulu 8.13.0.5-win64) (build 1.8.0_72-b15)
@aclement: This seems to be similar to https://github.com/grails/grails-core/issues/619, an issue you already know.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.