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 146188

Summary: Sometimes hints light bulbs are not visible
Product: java Reporter: Jiri Prox <jiriprox>
Component: HintsAssignee: Svata Dedic <sdedic>
Status: RESOLVED WONTFIX    
Severity: blocker    
Priority: P4    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Jiri Prox 2008-09-04 14:17:52 UTC
Product Version: NetBeans IDE Dev (Build 20080904014715)
Java: 1.6.0_10-rc; Java HotSpot(TM) Client VM 11.0-b13
System: Linux version 2.6.22-15-generic running on i386; UTF-8; en_US (nb)

Sometimes the lightbuld disappear and are not visible even when typing in editor. 

Steps to reproduce:
1) have a code:

      public void eq() {
		Integer a = null;
		Number b = null;
		String c = null;
		List<Integer> l1 = null;
		List<Number> l2 = null;
		List<String> l3 = null;
		a.equals(b);
		b.equals(a);
		c.equals(b);
		l1.equals(l2);
		l2.equals(l1);
		l1.equals(l3);
	}

	public void eqArrays() {        
		int[] a1 = null;     
		int[] a2 = null;
		if(a1.equals(a2)) {
			System.out.println("eq");
		}		
	}

-> there should be warning about incompatible types in .equal and about calling .equal on arrays

2) use hint to change .equal in eqArrays to '=='
3) undo the change
-> the warning about incompatible types disappears, typing eqArrays() does not help. 
   Saving file or editing eq() makes the hints visible again
Comment 1 Martin Balin 2016-07-07 07:15:56 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss