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 244905 - "Profile File" on class without main should fail before it opens profiler TopComponent
Summary: "Profile File" on class without main should fail before it opens profiler Top...
Status: VERIFIED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Jiri Sedlacek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-05 11:25 UTC by Jiri Skrivanek
Modified: 2016-06-29 01:47 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2014-06-05 11:25:31 UTC
When you try to profile class without main method it should fail before profiling session configuration is open. To reproduce:

- create sample Anagram project
- right-click "Source Packages|com.toy.anagrams.lib|StaticWordLibrary.java" and choose "Profile File"
- it opens profiler TopComponent
- select "Telemetry" and click "Profile"
- it opens warning dialog
- now if you right-click project node and choose Profile you get stuck with "Profile" action disabled. It should either provide warning dialog immediately when you click "Profile File" or reset profiler session when it fails

Product Version: NetBeans IDE Dev (Build prototypes-profiler-14-on-20140604)
Java: 1.8.0_05; Java HotSpot(TM) 64-Bit Server VM 25.5-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_05-b13
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)
Comment 1 Jiri Sedlacek 2016-06-17 15:27:38 UTC
Now behaves similar to Run File and Debug File actions - the action is always enabled but invoking it displays missing main method dialog.

Fixed by http://hg.netbeans.org/profiler-main/rev/ee818277b964.
Comment 2 Jiri Skrivanek 2016-06-21 09:42:55 UTC
Verified. Thanks.
Comment 3 Quality Engineering 2016-06-29 01:47:28 UTC
Integrated into 'main-silver', will be available in build *201606290002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/ee818277b964
User: Jiri Sedlacek <jis@netbeans.org>
Log: Bugfix #244905 - do not open profiler session for Profile File without main method