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 95320 - Go to source should notify when sources cannot be shown
Summary: Go to source should notify when sources cannot be shown
Status: RESOLVED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Jiri Sedlacek
URL:
Keywords:
Depends on: 92727
Blocks: 103054
  Show dependency tree
 
Reported: 2007-02-12 21:50 UTC by Alexander Kouznetsov
Modified: 2007-08-13 12:27 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Snapshot (340.66 KB, application/octet-stream)
2007-02-19 12:40 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-02-12 21:50:23 UTC
Profiler 070212
NetBeans IDE Dev (Build 200702111900)
1.5.0_10; Java HotSpot(TM) Client VM 1.5.0_10-b03
Windows XP version 5.1 running on x86
ru_RU (nb); Cp1251

No notification is shown for sun.java2d.SunGraphics2D item of the Memory
Snapshot and Alloc Diff, for example.

According to issue 53651 this is a defect.
Comment 1 Jiri Sedlacek 2007-02-15 14:45:47 UTC
Fixed for M7.
Comment 2 Alexander Kouznetsov 2007-02-16 17:41:16 UTC
Verified for Memory snapshot, but still is not implemented for CPU snapshots.
Comment 3 Jiri Sedlacek 2007-02-19 11:08:18 UTC
Did you check the sources before saying that it's not implemented for CPU?

It should be fixed for all Go To Source usages since the code is implemented in 
just one method called from many places (snapshots, live results, diffs, 
HeapWalker...).

Please provide the snapshot and method name for which Go To Source doesn't work 
and don't show the error message or close the issue.
Comment 4 Alexander Kouznetsov 2007-02-19 12:39:58 UTC
Try sun.awt.datatransfer.DataTransferer$CharsetComparator.<clinit> in the
snapshot attached.
Comment 5 Alexander Kouznetsov 2007-02-19 12:40:46 UTC
Created attachment 38664 [details]
Snapshot
Comment 6 Jiri Sedlacek 2007-02-19 13:02:13 UTC
Thanks. This is a sideeffect of Issue 92727, everything will work OK once that 
issue will be fixed.

FYI, the same problem is present for Memory snapshots, it wasn't verified 
properly.
Comment 7 Tomas Hurka 2007-03-23 10:11:48 UTC

*** This issue has been marked as a duplicate of 92727 ***
Comment 8 Alexander Kouznetsov 2007-03-23 10:46:03 UTC
This is not a duplicate since in original description there is
sun.java2d.SunGraphics2D class which has nothing with nested classes. Feel free
to mark it as FIXED, but verification will be blocked by 92727.
Comment 9 Tomas Hurka 2007-03-23 11:32:51 UTC
Well, the problem is that you mixed two bugs together. The problem with
sun.java2d.SunGraphics2D is fixed in M7. You incorrectly reopened it with
different problem (see
sun.awt.datatransfer.DataTransferer$CharsetComparator.<clinit> ). This problem
is duplicate of issue #92727. 
So this bug according to original description is fixed in M7.
Comment 10 Alexander Kouznetsov 2007-04-28 09:32:01 UTC
Verified with
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 11 Alexander Kouznetsov 2007-04-28 13:37:24 UTC
Profiler 070427

Open attached snapshot and try to perform Go To Source operation for any method
of com.toy.* class (Anagram Game project shouldn't be open). No message is
shown. No sources are opened.
Comment 12 Alexander Kouznetsov 2007-05-01 08:24:35 UTC
Another scenario:
- Start Profiling of Web Sample Application
(http://www.netbeans.org/nonav/issues/showattachment.cgi/39630/web.zip) on Sun
Java System Application Server 9/GlassFish: Analyze Performance, Entire
Application, Profile Only Project Classes
- Play with application
- Open Live Results
- Right click org.apache.jsp.index_jsp._jspService and select Go To Source
- RESULT: No sources are shown, no message is displayed.
Comment 13 Alexander Kouznetsov 2007-05-01 08:30:41 UTC
It seems that HeapWalker uses different Go To Source routine since when I
right-click com.sun.org.apache.commons.modeler.NotificationInfo[] and select Go
To Source, I get no messages and no sources are shown. Please let me know if
this should be filed as a separate issue.
Comment 14 J Bachorik 2007-05-01 18:15:00 UTC
Well, here we have more issues grouped.
1. Problem with not giving the user a warning about not being able to fetch the
correct sources - i believe this is fixed
2. Problem with inner classes (anonymous or regular) - this should be ok for
some time now
3. Problem opening sources of JSPs - filed a new issue #103054 as this is
specific for JSPs; still the requirement for "no source available" kind-of
message is valid
3. Problem with no message shown when accessing sources of a not opened project
- the only circumstances leading to this kind of behaviour (at least for me)
where when classpath scan blocks retouche infrastructure in opening the required
file - for this i've filed a bug #103055
Comment 15 Jiri Sedlacek 2007-08-13 12:27:12 UTC
Sources not found dialog correctly shown for:

 - sun.awt.datatransfer.DataTransferer$CharsetComparator.<clinit>
 - method from com.toy.* when AnagramGame project is not opened

Go To Source for JSP's and opening sources during initial scan is being tracked by other issues mentioned in previous 
comment. I'm closing this issue, if you still experience Go To Source problems in HeapWalker, please file a separate 
issue and provide the heapdump.