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.
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)
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.
Verified. Thanks.
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