This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 174271 - [68cat] [errors] Code Analysis generates meaningless errors
Summary: [68cat] [errors] Code Analysis generates meaningless errors
Status: RESOLVED INCOMPLETE
Alias: None
Product: ruby
Classification: Unclassified
Component: Editing (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Erno Mononen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-10 04:34 UTC by esmithbss
Modified: 2009-10-23 13:18 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screen capture with bad error messsage (126.64 KB, image/png)
2009-10-10 04:35 UTC, esmithbss
Details
IDE Log File (83.89 KB, text/plain)
2009-10-10 05:44 UTC, esmithbss
Details

Note You need to log in before you can comment on or make changes to this bug.
Description esmithbss 2009-10-10 04:34:13 UTC
[ BUILD # : 200910071536 ]
[ JDK VERSION : 1.6.* ]

I have a ruby module with a method.  Within the method is an
if-else-end structure.  All block ends match with block begins,
etc...

The end which matches with the method def is highlighted with an
error indicating "else without rescue is useless", however, the end
that this is connected to has no if-else structure associated with
it.

Additionally, the else block of the methods if statement simply puts
out a text string.
Comment 1 esmithbss 2009-10-10 04:35:23 UTC
Created attachment 89243 [details]
Screen capture with bad error messsage
Comment 2 esmithbss 2009-10-10 05:44:24 UTC
Created attachment 89247 [details]
IDE Log File
Comment 3 Erno Mononen 2009-10-12 13:29:58 UTC
Probably the same cause as in #174270.
Comment 4 Erno Mononen 2009-10-23 13:18:20 UTC
I'd need a sample file for this too (see #174270).