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 242804 - Action Items are processed in a wrong way
Summary: Action Items are processed in a wrong way
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Action Items (show other bugs)
Version: 8.0
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Jan Peska
URL:
Keywords:
: 242805 242806 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-03-11 17:45 UTC by wissenstein
Modified: 2014-05-03 05: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 wissenstein 2014-03-11 17:45:54 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
*** Bug 242805 has been marked as a duplicate of this bug. ***
Comment 2 wissenstein 2014-03-11 17:49:12 UTC
*** Bug 242806 has been marked as a duplicate of this bug. ***
Comment 3 Jan Peska 2014-05-02 09:52:07 UTC
fix: http://hg.netbeans.org/core-main/rev/2983d63b72bd
Comment 4 Quality Engineering 2014-05-03 05:02:36 UTC
Integrated into 'main-silver', will be available in build *201405030001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/2983d63b72bd
User: Jan Peska <JPESKA@netbeans.org>
Log: Issue #242804 - Action Items are processed in a wrong way
Try to apply mime setting first, fix saving the selected flag of line and block comments