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 242805 - Action Items are processed in a wrong way
Summary: Action Items are processed in a wrong way
Status: RESOLVED DUPLICATE of bug 242804
Alias: None
Product: ide
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.0
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: issues@ide
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-11 17:46 UTC by wissenstein
Modified: 2014-03-11 17:48 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 wissenstein 2014-03-11 17:46:15 UTC
Product Version = NetBeans IDE 8.0 RC1 (Build 201402242200)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.7.0_21
Runtime = Java HotSpot(TM) 64-Bit Server VM 23.21-b01

Open window Options, tab Team / Action Items.
Choose ToDo Pattern "PENDING", choose Java Files (text/x-java) among Supported File Types list and uncheck check box Scan Block Comments for it.
Choose ToDo Pattern "PENDING", choose extention JSP among Supported File Types list and ensure that only check box Scan Block Comments (<%-- --%>) is checked for it.
Click buttons Apply and OK.
Create a Maven Web project.

Create class PendingTransactionActionBean in it:

========
package com.wissenstein.actionitems;

/**
 *
 * @author olupandin
 */
public class PendingTransactionActionBean {

    /*
     * @return Count of pending transactions.
     */
    public int getPendingTransactionCount() {
        return 4;
    }
}
========

Open window Action Items.

Actual result: window Action Items contain an action item with the description: "pending transactions.".
Expected results: window Action Items is empty


Create JSP index.jsp in the project:

========
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <h1>Count of pending transactions</h1>
    </body>
</html>
========

Open window Action Items.

Actual result: window Action Items contains an action item with the description: "pending transactions</h1>".
Expected result: window Action Items is empty.


So, scanning for action items should be corrected.
Comment 1 wissenstein 2014-03-11 17:48:54 UTC

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