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.
Summary: | Wrong code generated for initialize() method when some visual elements are not lazy initialized | ||
---|---|---|---|
Product: | javame | Reporter: | gbadoi <gbadoi> |
Component: | Visual Designer | Assignee: | David Kaspar <dkaspar> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | Keywords: | RANDOM |
Priority: | P2 | ||
Version: | 6.x | ||
Hardware: | Sun | ||
OS: | Windows XP | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
Patch
Patch Patch Patch Patch |
Description
gbadoi
2008-10-01 07:55:41 UTC
Couldn't reproduce it in: Product Version: NetBeans IDE Dev (Build 090204) Java: 1.5.0_16; Java HotSpot(TM) Client VM 1.5.0_16-133 System: Mac OS X version 10.5.6 running on i386; MacRoman; en_US (nb) Userdir: /Volumes/trunk2/main/nbbuild/testuserdir I think this issues was fixed in Patch 1 for 6.5 (I may be wrong). Reproduced today several times (Mobile application, CLDC 1.1), same wrong code was generated for initialize(). Emulator starts, exception is raised after pushing Launch button. Product Version: NetBeans IDE 6.5 (Build 200811100001) Java: 1.6.0_11; Java HotSpot(TM) Client VM 11.0-b16 System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb) Could you provide information about version of Netbeans you are using (Copy past from Netbeans About window) NetBeans info (already sent!): Product Version: NetBeans IDE 6.5 (Build 200811100001) Java: 1.6.0_11; Java HotSpot(TM) Client VM 11.0-b16 System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb) Userdir: C:\Users\gigi\.netbeans\6.5 I can always reproduce it in NB 6.9.1. The issue was that FormCD is dependent on all its CommandEventSourceCDs but the CommandEventSourceCD is not ClassCD and therefore not included into the dependency-map of the topological sort... Attaching a patch for the issue. It contains: 1) CommandEventSourceCD is dependency on its Command 2) RootCode class with topological sort is gathering dependency map using all components in the document Created attachment 102408 [details]
Patch
Created attachment 102411 [details]
Patch
A new patch that included the same fix even for ChoiceGroupCD.
Created attachment 102412 [details]
Patch
A new patch that included the same fix even for ChoiceGroupCD.
Created attachment 102413 [details]
Patch
A new patch that included the same fix even for ChoiceGroupCD.
Created attachment 102414 [details]
Patch
A new patch that included the same fix even for ChoiceGroupCD.
Committed and pushed as: changeset: 179678:f319d413228a tag: tip user: David Kaspar <dkaspar@netbeans.org> date: Thu Oct 14 19:57:42 2010 +0200 summary: #148805: Fix for correct topological sort of non-lazy-initialized components Integrated into 'main-golden', will be available in build *201010150000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/f319d413228a User: David Kaspar <dkaspar@netbeans.org> Log: #148805: Fix for correct topological sort of non-lazy-initialized components |