apache / apache/grails-intellij-plugin

Grails GORM Class with @GrailsCompileStatic annotation shows in the static mapping closure table, version, autoTimestamp as unresolved symbol

Open
#343 0 comments 0 reactions 0 assignees View on GitHub
bug imported-from-youtrack
Dominant language
Java
Stars
17
Forks
4
Avg merge
5d 15h
Merged PRs (30d)
4

Description

without this GrailsCompileStatic annotation, version is not recognized as valid and gives a warning.

Project ist with Grails 3.2.10
```
package de.equeo.requestcode

import grails.compiler.GrailsCompileStatic

@GrailsCompileStatic
class Feature {

String name

static mapping = {
table 'rq_feature'
version false
autoTimestamp false
}

}
```
IU-183.5153.38, JRE 1.8.0_152-release-1343-b26x64 JetBrains s.r.o, OS Mac OS X(x86_64) v10.14.2, screens 1920x1200

---

*Imported from [IDEA-206196](https://youtrack.jetbrains.com/issue/IDEA-206196) · Type: Bug · Votes: 8*
*Comments, attachments, dates and reporter are not part of the export — follow the link above for the full history.*

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the provided Feature class and its @GrailsCompileStatic annotation and static mapping closure, then reproduce the unresolved-symbol warnings in the stated Grails and IntelliJ environment. Done means table, version, and autoTimestamp are recognized in the mapping closure without warnings.

Written by the indexing model from the issue text.

Assessment

Tech stack
groovy, java
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.