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 244882 - scheduled method is not detected as being used
Summary: scheduled method is not detected as being used
Status: RESOLVED DUPLICATE of bug 176240
Alias: None
Product: javaee
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: issues@javaee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-04 11:42 UTC by muellermi
Modified: 2014-07-21 08:46 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (511.87 KB, text/plain)
2014-06-04 11:42 UTC, muellermi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description muellermi 2014-06-04 11:42:47 UTC
Product Version = NetBeans IDE 8.0 (Build 201403101706)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.8.0_05
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.5-b02

Given this method in a JEE app:

    @Schedule(hour = "*", minute = "*", second = "*/15", info = "every 15 seconds")
    private void myMethod(){...}

MyMethod is not referenced from any other part of the code. NB marks this method a not used.
But, this is wrong: Because of the Schedule annotation, this method is used (called) by the timer service.
Comment 1 muellermi 2014-06-04 11:42:59 UTC
Created attachment 147562 [details]
IDE log
Comment 2 Martin Fousek 2014-07-21 08:46:19 UTC
I'm afraid that we don't have anything to do about that into NB801. I believe we will be able to fix that later. This is another "duplicate" of bug #176240.

*** This bug has been marked as a duplicate of bug 176240 ***