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

Summary: [68cat] [errors] Code Analysis generates meaningless errors
Product: ruby Reporter: esmithbss <esmithbss>
Component: EditingAssignee: Erno Mononen <emononen>
Status: RESOLVED INCOMPLETE    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: Screen capture with bad error messsage
IDE Log File

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).