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 138580 - VWP editor always adds prerender, preprocess, destroy with no call to super
Summary: VWP editor always adds prerender, preprocess, destroy with no call to super
Status: NEW
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: _ sandipchitale
Depends on:
Reported: 2008-06-30 08:45 UTC by rcasha
Modified: 2008-08-13 04:21 UTC (History)
0 users

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description rcasha 2008-06-30 08:45:31 UTC
In the Visual Web editor, if I delete the methods prerender, preprocess and destroy from the page class, the visual
editor will re-add them, but WITHOUT calling super.prerender etc. This means that if I inherit from a class which has
something in these methods, the class generated by the visual editor will prevent that code from being called.

Ideally, such auto-generated methods should always call
Comment 1 Karthikeyan Rajeswaran 2008-08-12 22:16:30 UTC
There may be cases when the call to super() may not be desirable. Perhaps whether to generate the call or not should be
Comment 2 rcasha 2008-08-13 04:21:50 UTC
I can't imagine where that would be the case - and certainly not all of them. Most such functions are empty placeholders
in the normal classes but in inherited classes, if they are coded the user would want them called.