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 9677 - ! ProjectDataObject.getCookie(CompilerCookie.Compile) instanceof CompilerCookie.Compile
Summary: ! ProjectDataObject.getCookie(CompilerCookie.Compile) instanceof CompilerCook...
Status: CLOSED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 3.x
Hardware: PC Linux
: P4 blocker (vote)
Assignee: issues@projects
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-02-18 22:35 UTC by Jesse Glick
Modified: 2003-07-01 14:17 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 Jesse Glick 2001-02-18 22:35:24 UTC
Pretty self-explanatory. ProjectDataObject's getCookie method (or
PSupport.getCompilerCookie) ignores the actual passed-in cookie class, and
returns something which only implements CompilerCookie. This violates the
contract of getCookie that the returned result if non-null be assignable to the
requested class.
Comment 1 Jan Pokorsky 2001-03-08 17:49:39 UTC
Both methods respect the actual passed-in cookie class now.
Comment 2 Milan Kubec 2002-01-25 11:24:29 UTC
Verified.
Comment 3 Quality Engineering 2003-07-01 14:17:05 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.