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 - ClazzDataObject does not recognize bytecode with multiple methods differing only in return type
Summary: ClazzDataObject does not recognize bytecode with multiple methods differing o...
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Linux
: P4 normal (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-10-27 14:45 UTC by Jesse Glick
Modified: 2003-06-30 16:44 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
patch to correct this bug (2.03 KB, patch)
2001-07-20 20:33 UTC, Tomas Hurka
Details | Diff

Note You need to log in before you can comment on or make changes to 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.