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 138692 - Broken guarded blocks
Summary: Broken guarded blocks
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Jan Pokorsky
URL:
Keywords:
: 139021 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-07-01 10:19 UTC by Jiri Prox
Modified: 2008-07-10 18:10 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Prox 2008-07-01 10:19:31 UTC
Product Version: NetBeans IDE Dev (Build 20080701041254)
Java: 1.6.0_10-beta; Java HotSpot(TM) Client VM 11.0-b12
System: Linux version 2.6.22-15-generic running on i386; UTF-8; en_US (nb)


The guarded block are broken when adding more events handling methods in form.

Steps to reproduce:
1) create new form
2) add button and add event handler method to it
3) type in some code in the newly created method(1 line is enough)
4) close the form and open it again
5) add another event handling method
6) reopen the file

-> the guarded block on the 1st event handler is moved to 1st and 2nd line, not the 1st and the last one
-> making it P1 since this is very common usecase IMO

this does not happen in 6.5M1, the difference between M1 and dev is that when the form is opened in M1 it is always
witched to design view, in dev it's opened in the source view.
Comment 1 Jan Pokorsky 2008-07-01 13:09:33 UTC
Most likely caused by http://hg.netbeans.org/main/rev/0ee22aad73ba.
Comment 2 Jiri Vagner 2008-07-08 13:34:27 UTC
*** Issue 139021 has been marked as a duplicate of this issue. ***
Comment 3 Jan Pokorsky 2008-07-09 12:24:05 UTC
fixed as http://hg.netbeans.org/main/rev/4dd8aaccd2ba
Comment 4 _ gtzabari 2008-07-09 15:22:20 UTC
I'm guessing this fix will only show up in tomorrow's dev build?
Comment 5 Quality Engineering 2008-07-09 15:44:27 UTC
Integrated into 'main-golden', available in NB_Trunk_Production #309 build
Changeset: http://hg.netbeans.org/main/rev/4dd8aaccd2ba
User: Jan Pokorsky <jpokorsky@netbeans.org>
Log: #138692: broken handling of unresolved biased positions
Comment 6 Jan Pokorsky 2008-07-09 16:01:53 UTC
It is also available as a continuous build http://deadlock.netbeans.org/hudson/job/trunk/2697/artifact/nbbuild/dist/zip/.
Comment 7 _ gtzabari 2008-07-10 18:10:46 UTC
Verified! Thank you very much ;)