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

Summary: ! ProjectDataObject.getCookie(CompilerCookie.Compile) instanceof CompilerCookie.Compile
Product: projects Reporter: Jesse Glick <jglick>
Component: Generic InfrastructureAssignee: issues@projects <issues>
Status: CLOSED FIXED    
Severity: blocker    
Priority: P4    
Version: 3.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

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.