History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-22632
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Normal Normal
Assignee: Alexey Kudravtsev
Reporter: Taras Tielkes
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

spring + aop: inconsistent "highlight usages"

Created: 03 Oct 07 20:10   Updated: 06 Dec 07 18:51
Component/s: J2EE.Spring
Fix Version/s: Selena 7.0.2

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
File Attachments: None
Image Attachments:

1. screenshot-1.jpg
(23 kb)

Build: 7,318
Fixed in build: 7,506


 Description  « Hide
import org.aspectj.lang.annotation.Before;

@org.aspectj.lang.annotation.Aspect
public class Dummy {
    @Before("@annotation(MyAnnotation) && args(n, ..)")
    public void before(int n) {
        System.out.println("n : " + n);
    }
}

There are 3 usages of "n". Highlighting (Ctrl-Shift-F7) behavior is inconsistent:

  • Inside args(), in injected context: Ctrl-Shift-F7 highlights 2 usages (see attached screenshot)
  • As Java method parameter: Ctrl-Shift-F7 highlights 3 usages
  • As variable reference in method body: Ctrl-Shift-F7 highlights 3 usages


 All   Comments   Work Log   Change History      Sort Order:
Taras Tielkes - 11 Oct 07 15:29
And a similar example from HQL injected in to Java:
Query q4 = session.createQuery("from User user order by user.lastName asc, user.firstName asc");

First Ctrl-Shift-F7 highlights all 3 "user" tokens
Second Ctrl-Shift-F7 removes highlighting from second and third "user" token, but not from the first.

In addition, IDEA-15507 (similar Ctrl-Shift-F7 problem with JavaScript injected in HTML) is probably a duplicate of this.