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 98538 - Go to source works incorrectly for anonymous classes
Summary: Go to source works incorrectly for anonymous classes
Status: RESOLVED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: J Bachorik
URL:
Keywords:
Depends on: 110957
Blocks:
  Show dependency tree
 
Reported: 2007-03-21 18:50 UTC by Alexander Kouznetsov
Modified: 2007-08-30 11:07 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Sample application (13.27 KB, application/x-compressed)
2007-03-21 18:51 UTC, Alexander Kouznetsov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Kouznetsov 2007-03-21 18:50:09 UTC
Profiler 070321
NetBeans IDE Dev (Build 200703201900)
1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105
Windows XP version 5.1 running on x86
ru_RU (nb); Cp1251

When Go To Source action is invoked from Live Results for methods or objects of
anonymous classes, it ignores anonymous class number and opens surrounding class
and its methods. For example, if surrounding class has the same method as
anonymous class, method of surrounding class would be shown instead of the
anonymous class.
Comment 1 Alexander Kouznetsov 2007-03-21 18:51:15 UTC
Created attachment 39775 [details]
Sample application
Comment 2 Tomas Hurka 2007-03-23 10:11:47 UTC
This should be probably fixed together with issue #92727
Comment 3 J Bachorik 2007-03-26 13:47:41 UTC
fixed for m9
Comment 4 Alexander Kouznetsov 2007-04-28 13:32:39 UTC
This issue is partially fixed. In fact, it perfectly works with opened files.
However, if the class source file is not yet opened Go To Source still shows
methods of surrounding class, and this is incorrect.

Profiler 070426
NetBeans IDE 6.0 Preview (M9, build 070427)
1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105
Windows XP version 5.1 running on x86
ru_RU (nb); Cp1251
Comment 5 J Bachorik 2007-06-11 10:48:50 UTC
fixed.
the compiler engine is now explicitly moved to the RESOLVED state before trying
to localize an anonymous inner class's method
Comment 6 Alexander Kouznetsov 2007-07-05 16:38:22 UTC
Failed to verify with
Profiler 1.2 070703
Product Version: NetBeans IDE Dev (Build 200707031200) 
Java: 1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105 
System: Windows XP version 5.1 running on x86; Cp1251; ru_RU (nb)

For example, first line of EventQueue class definition is still shown on Go To Source for java.awt.EventQueue$1.run()
method when EventQueue class is not yet loaded.
Comment 7 J Bachorik 2007-08-30 11:07:10 UTC
fixed in trung; finally