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 8058

Summary: ClazzDataObject does not recognize bytecode with multiple methods differing only in return type
Product: java Reporter: Jesse Glick <jglick>
Component: UnsupportedAssignee: issues@java <issues>
Status: CLOSED FIXED    
Severity: normal    
Priority: P4    
Version: 3.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: patch to correct this bug

Description Jesse Glick 2000-10-27 14:45:04 UTC
[trunk build Oct 27 2000]

Curious to see what would happen, I mounted lib/patches/openide-compat.jar from
a new IDE build in Filesystems and explored to
org/openide/util/actions/SystemAction.class. This bytecode file has two methods
differing only in return type:

	public final Icon getIcon ();
	public final ImageIcon getIcon ();

Note that a Java compiler cannot produce such a classfile, but you can create it
manually and the JVM will accept it.

The IDE only displayed one of the methods (the one with ImageIcon as the return
type).
Comment 1 Tomas Hurka 2001-01-24 08:07:59 UTC
OK, I added return type of the method as a part of MethodElement.Key object.
This is optional, you can still create MethodElementKey without return type to
retain backward compatibility. Proposed patch will be attached in the next
comment.
Comment 2 Tomas Hurka 2001-01-24 08:10:59 UTC
Created attachment 493 [details]
patch to correct this bug
Comment 3 Svata Dedic 2001-01-24 09:21:59 UTC
Thanks, Tomas, for the fix :-)
Comment 4 Jan Becicka 2001-02-13 10:59:59 UTC
[dev-125] Verified
Comment 5 Quality Engineering 2003-06-30 16:44:16 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.