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 207375 - Profiling points do not work in initializers
Summary: Profiling points do not work in initializers
Status: RESOLVED WONTFIX
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 7.1
Hardware: PC All
: P3 normal (vote)
Assignee: issues@profiler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-17 07:53 UTC by Petr Cyhelsky
Modified: 2012-05-21 10:02 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 Petr Cyhelsky 2012-01-17 07:53:46 UTC
Product Version: NetBeans IDE Dev (Build 201201150601)
Java: 1.7.0_02; Java HotSpot(TM) Client VM 22.0-b10
System: Linux version 2.6.38-13-generic running on i386; UTF-8; en_US (nb)

When profiling point is placed in initializer block the "invalid location" error message is shown and the profiling point is not working.
Comment 1 J Bachorik 2012-05-21 10:02:23 UTC
The javac infrastructure is not able to resolve the static initializer as a valid method. There is no workaround, unfortunately.