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 22969 - ViewCookie is not found on HTMLDataObject
Summary: ViewCookie is not found on HTMLDataObject
Status: CLOSED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 3.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: _ rkubacki
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-30 14:46 UTC by Tomas Zezula
Modified: 2009-05-18 10:45 UTC (History)
0 users

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 Tomas Zezula 2002-04-30 14:46:29 UTC
ViewCookie is not found on HTMLDataObject due to
strange implementation of createCookie method.

Node.Cookie createCookie (Class klass) {
...
if (klass == ViewSupport.class) {
            return new ViewSupport(getPrimaryEntry());
        }
...
}

where ViewSupport implements ViewCookie, but the
if condition above
is not satisfied for ViewCookie.

Condition should like:
if (ViewCookie.isAssignableFrom (klass)) {
   return new ViewSupport(getPrimaryEntry());
}

The same holds for HtmlEditorSupport case in the
same method.
Comment 2 Damian Frach 2002-06-20 09:59:34 UTC
verified in NetBeans IDE 3.4 Beta 2 (Build 20020620-0722)
Comment 3 Quality Engineering 2003-07-01 09:20:56 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.