Project
IntelliJ IDEA
Priority
Normal
Type
Bug
Fix versions
No Fix versions
State
Verified
Assignee
Sergey Evdokimov
Subsystem
Groovy
Affected versions
No Affected versions
Fixed in build
98.157  
  • Created by   Alexander Chernikov
    2 years ago (15 Jul 2009 20:16)
  • Updated by   Alexander Chernikov
    19 months ago (18 Oct 2010 19:21)
  • Jira: IDEADEV-38602
    (history, comments)
 
IDEA-49744 GSP: "Assignment is not used" false positive for a value assigned in a scriptlet and used in expression
0
Issue is visible to: All Users
  The issue is visible to the selected user group only
Make sure Groovy inspection "Assignment is not used" is turned On.
Provide a GSP with a value assigned in a scriptlet ans used in an expression of any form. Like:
...
	<%
		List<GrailsClass> controllers = grailsApplication.controllerClasses
	%>
	<%=controllers%>
	<g:each var="controller" in="${controllers}">
		...
	</g:each>
...

Despite all usages in expressions the value "grailsApplication.controllerClasses" is flagged with the inspection.
Comments (1)
 
History
 
Linked Issues (?)
 
Alexander Chernikov
  Alexander Chernikov
18 Oct 2010 19:21
19 months ago
98.169: fix confirmed.
Related Changes
State
FixedVerified
Assignee
Sergey Evdokimov (sergey.evdokimov)Sergey Evdokimov
Subsystem
<lost change>Groovy
Fixed In build
<lost change>98.157