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 27186 - Make handling form superclass more robust
Summary: Make handling form superclass more robust
Status: RESOLVED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P2 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
: 19185 (view as bug list)
Depends on:
Blocks: 27183
  Show dependency tree
 
Reported: 2002-09-10 17:34 UTC by Tomas Pavek
Modified: 2003-04-10 12:12 UTC (History)
0 users

See Also:
Issue Type: TASK
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Pavek 2002-09-10 17:34:37 UTC
Form editor's trying to use declared superclass of
the form makes problems to many users. As it did
not work this way sooner, people had many forms
extending classes that are not beans (cannot be
instantiated). However the form still works (using
a substitute type), error message is shown each
time the form is opened, and many people have
problems understand what it means (mainly when
everything worked well in previous release). The
type substitution should be probably done silently
(although the error information should not be
lost), maybe the substitute type should be also
definable by the user.
Comment 1 Tomas Pavek 2002-10-03 09:22:51 UTC
It turns out this issue has impact also on performance and projects.
For performance aspect, see issue 27183 (not obtaining form superclass
would speed up opening for the first time). As for projects, if forms
could be opened from filesystems (i.e. not from any project), the
information about superclass would not be available - so the error
would be displayed everytime. So raising priority...
Comment 2 Tomas Pavek 2003-02-03 10:16:32 UTC
Giving up the performance aspect, but otherwise fixed.
If the declared form superclass cannot be resolved/used, the FormInfo
type is used silently, just printing warning message to console and
log. For the case described in issue 29700 (form code moved to
innerclass), non-visual declared superclass is not used if there is
FormInfo of visual form.

Trying to improve performance by not asking for the superclass (so not
requiring source parsing) has been found complicated and not reliable
(we would have to save the superclass in the .form file, so upgrade
the format version again, check it always on save, but still could be
not in sync with source code if modified externally).

/cvs/form/src/org/netbeans/modules/form/GandalfPersistenceManager.java
revision 1.112
Comment 3 Tomas Pavek 2003-03-11 16:07:41 UTC
*** Issue 19185 has been marked as a duplicate of this issue. ***