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

Key: IDEA-17607
Type: Cosmetics Cosmetics
Status: Open Open
Assignee: Gregory Shrago
Reporter: Anatoly Katzman
Votes: 0
Watchers: 1
Operations

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

SQL literals in Java code fool mislead IDEA code checking

Created: 02 Apr 08 15:41   Updated: 02 Apr 08 15:44
Component/s: Editor. Error Highlighting

File Attachments: None
Image Attachments:

1. Screenshot-DBClassify - [-home-anatoly-workspace-trunk] - [PacketAnalyzer] - ...-PacketAnalyzer-src-com-zetapoint-DB-DB.java - IntelliJ IDEA (Diana) #8243-1.png
(135 kb)
Environment:
 uname -a
Linux anatoly 2.6.23.14-64.fc7 #1 SMP Sun Jan 20 23:54:08 EST 2008 i686 i686 i386 GNU/Linux

Build: 8,243
Severity: Medium


 Description  « Hide
Looks like IDEA gets a bit confused when Java code includes SQL literals. That is, on the below Java statement
res.stmt=pcn.getCnn().prepareCall("begin " + strCallableFn + " end;");
IDEA underlines "begin" in red with tooltip saying 'unexpected BEGIN'.
Screenshot attached.

 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.