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.
Build 200707200000 With two objects of same type, "obj1.field = obj2.field" gives warning. Screenshot attached showing details.
Created attachment 45484 [details] specific code involved with bogus warning
Seems like dupe of issue #106408 to me. Thanks for the report. *** This issue has been marked as a duplicate of 106408 ***
Reopening. Issue 106408 was closed on July 11, this is reported against 20070720. I tried it with 2007270000 (this mornings build) and the problem is still there. Here is a complete .java file that reproduces the problem: import java.awt.Dimension; import java.awt.Toolkit; import javax.swing.JFrame; public class NewClass { JFrame frame = null; Dimension s = Toolkit.getDefaultToolkit().getScreenSize(); Dimension f = frame.getSize(); void meth() { if(f.height > s.height) f.height = s.height; } } ======== Product Version: NetBeans IDE Dev (Build 200707270000) Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b06 System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb) Userdir: C:\Documents and Settings\erra\.netbeans\dev
*** Issue 112078 has been marked as a duplicate of this issue. ***
Checking in AssignmentToItself.java; /cvs/java/hints/src/org/netbeans/modules/java/hints/AssignmentToItself.java,v <-- AssignmentToItself.java new revision: 1.6; previous revision: 1.5 done
yup. can we turn the option back on again by default?
Checking in AssignmentToItself.java; /cvs/java/hints/src/org/netbeans/modules/java/hints/AssignmentToItself.java,v <-- AssignmentToItself.java new revision: 1.7; previous revision: 1.6