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 119687 - Syntax check broken for comparison to null
Summary: Syntax check broken for comparison to null
Status: RESOLVED DUPLICATE of bug 118348
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: PC All
: P3 blocker (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-22 19:09 UTC by darrinps
Modified: 2007-10-31 19:26 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 darrinps 2007-10-22 19:09:27 UTC
This seems to be new to the 10/22/2007 daily build as I did not see it from the build of the 17th.

I have a method that checks to see if a parameter is null.  The editor reports that:
operator == cannot be applied to com.mycorp.mypackage.MyClass, <nulltype>

Obviously, you can check to see if a class == null.
Comment 1 Jiri Prox 2007-10-23 08:50:43 UTC
Can you provide more info about your project? Do you use libraries? If yes how are they configured?
Comment 2 Jan Lahoda 2007-10-23 11:40:01 UTC
This usually happens when the type of the variable (parameter in this case) cannot be correctly resolved (ie. the type
itself is errorneous, or if its superclass cannot be resolved). Sorry, we will need more info on how to reproduce. Thanks.
Comment 3 darrinps 2007-10-24 19:40:29 UTC
Yes we have libraries but the error wasn't being reported on a class inside one...it was for a class local to the project.

Note again that I opened up that class and saw that it had no errors, then went back to the class showing the error and
it was still there.  After doing a clean build, at some time later, the error was no longer reported.

Comment 4 Jan Lahoda 2007-10-31 19:26:50 UTC

*** This issue has been marked as a duplicate of 118348 ***