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 246154 - Wrong default profiling roots for Maven project
Summary: Wrong default profiling roots for Maven project
Status: VERIFIED FIXED
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 7.4
Hardware: All All
: P2 normal (vote)
Assignee: Tomas Hurka
URL:
Keywords: JDK_8
Depends on:
Blocks:
 
Reported: 2014-07-31 06:56 UTC by Jiri Skrivanek
Modified: 2014-08-01 07:12 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-07-31 06:56:26 UTC
Project classes are ignored as profiling roots while profiling Maven java project. It happens only with JDK8. To reproduce:

- create new Maven java project
- add main class with some lengthy computing in main method
- right-click project root and choose Profile
- select CPU -> Advanced -> Profile only project classes
- click Run
- profiling is started but no methods are displayed in live results view. It works with JDK7u60 but not with any of JDK8s

Product Version: NetBeans IDE Dev (Build 201407300001)
Java: 1.8.0_11; Java HotSpot(TM) 64-Bit Server VM 25.11-b03
Runtime: Java(TM) SE Runtime Environment 1.8.0_11-b12
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)
Comment 1 Tomas Hurka 2014-07-31 07:12:12 UTC
Can you please test it with NB 8.0 FCS? Thanks.
Comment 2 Jiri Skrivanek 2014-07-31 07:13:36 UTC
It is the same with NB 8.0 FCS. It does not work.
Comment 3 Tomas Hurka 2014-07-31 07:14:24 UTC
Thanks and what about NB 7.4?
Comment 4 Jiri Skrivanek 2014-07-31 07:24:58 UTC
Does not work in NB7.4.
Comment 5 Tomas Hurka 2014-07-31 07:30:20 UTC
Wow :-(
Comment 6 Tomas Hurka 2014-07-31 09:55:06 UTC
Fixed in profiler-main 

changeset:   276274:fde02ae642a1
user:        Tomas Hurka <thurka@netbeans.org>
date:        Thu Jul 31 11:51:40 2014 +0200
summary:     bugfix #246154, allow to instrument two main classes if one of them is from sun.launcher package


now JDK 7 and JDK 8 behaves the same, but root methods in maven j2se project are still computed incorrectly.
Comment 7 Quality Engineering 2014-08-01 02:09:34 UTC
Integrated into 'main-silver', will be available in build *201408010001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/fde02ae642a1
User: Tomas Hurka <thurka@netbeans.org>
Log: bugfix #246154, allow to instrument two main classes if one of them is from sun.launcher package
Comment 8 Jiri Skrivanek 2014-08-01 07:12:57 UTC
Verified in build 201408010001.