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.
In the following code: Integer myValue = 100; Assert.assertEquals((Integer) 50, myValue); I have a warning "Unnecessary cast to Integer". After using hint I got the following code: Integer myValue = 100; Assert.assertEquals(50, myValue); which throws the compile error: error: reference to assertEquals is ambiguous Assert.assertEquals(50, myValue); both method assertEquals(Object,Object) in Assert and method assertEquals(long,long) in Assert match 1 error
Solved as part of issue #243581
*** Bug 242856 has been marked as a duplicate of this bug. ***
Verified in 201504150001