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 241348 - [Safe Delete] Can not recognize the field
Summary: [Safe Delete] Can not recognize the field
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 8.0
Hardware: PC Linux
: P3 normal (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-03 15:18 UTC by ssazonov
Modified: 2014-02-14 09:50 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
img (24.26 KB, image/png)
2014-02-03 15:19 UTC, ssazonov
Details
ClassA (130 bytes, application/octet-stream)
2014-02-03 15:26 UTC, ssazonov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ssazonov 2014-02-03 15:18:52 UTC
1. Create java class:

package packageD;

public class ClassA {
 
    int i;
    
    public ClassA() {
        i = 1;
        // i = 3;
    }
}

2. Put caret at position: "int i|;" (where '|' is a position of caret)

3. Using Alt+Delete invoke Safe Delete dialog

>> Safe delet can not be resolved since refactor can not detect the object (see img)

Product Version: NetBeans IDE Dev (Build 201402030001)
Java: 1.8.0; Java HotSpot(TM) 64-Bit Server VM 25.0-b67
Runtime: Java(TM) SE Runtime Environment 1.8.0-b126
System: Linux version 3.8.0-19-generic running on amd64; UTF-8; en_US (nb)
Comment 1 ssazonov 2014-02-03 15:19:18 UTC
Created attachment 144739 [details]
img
Comment 2 ssazonov 2014-02-03 15:26:18 UTC
Created attachment 144740 [details]
ClassA
Comment 3 Ralph Ruijs 2014-02-03 15:49:23 UTC
changeset   : 335c1e8b8424
author      : Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org>
date        : Mon Feb 03 16:44:45 CET 2014
summary     : #241348 - [Safe Delete] Can not recognize the field
Comment 4 Quality Engineering 2014-02-05 02:45:17 UTC
Integrated into 'main-silver', will be available in build *201402050001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/335c1e8b8424
User: Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org>
Log: #241348 - [Safe Delete] Can not recognize the field