| Summary: | equals compares objects of different types | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Darin Wright <darin.eclipse> |
| Component: | Debug | Assignee: | JDT-Debug-Inbox <jdt-debug-inbox> |
| Status: | VERIFIED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | daniel_megert |
| Version: | 3.6 | ||
| Target Milestone: | 3.6.1 | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
Fixed in HEAD. Also fixed in 3.6.1 Verified in M20100825-0800. |
This bug was discovered by FindBugs. org.eclipse.jdt.internal.debug.eval.ast.engine.ASTInstructionCompiler.getTypeId(Type) The following line compares a String to a Name, and will never return true. if ("java.lang.String".equals(simpleType.getName())){ //$NON-NLS-1$ return Instruction.T_String; } It should be comparing to to getName().getFullyQualifiedName().