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 254516 - Extract Interface dialog does not recognize the caret position
Summary: Extract Interface dialog does not recognize the caret position
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 8.1
Hardware: PC Windows 10 x64
: P3 normal (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-19 15:05 UTC by stwr
Modified: 2015-08-25 11:39 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Extract Interface dialog does not recognize caret position (10.79 KB, image/png)
2015-08-19 15:06 UTC, stwr
Details
Extract Superclass dialog recognizes caret position (11.40 KB, image/png)
2015-08-19 15:06 UTC, stwr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description stwr 2015-08-19 15:05:38 UTC
Product Version: NetBeans IDE Dev (Build 201508190002)
Java: 1.8.0_60-ea; Java HotSpot(TM) 64-Bit Server VM 25.60-b23
Runtime: Java(TM) SE Runtime Environment 1.8.0_60-ea-b25
System: Windows 10 version 10.0 running on amd64; Cp1250; pl_PL (nb)

Test Case --> http://services.netbeans.org/synergy/client/app/#/case/5140/suite/2026/v/1

--Use Case--
1. Open extract.ClassB.java class
2. Put caret into public void m|1(){...}
3. From main menu select Refactor > Extract Interface... 

--Actual Result--
Method m1() is not checked by default.

On the other hand the Extract Superclass dialog recognizes the caret position and the current method is checked by default. See both pictures.
Comment 1 stwr 2015-08-19 15:06:08 UTC
Created attachment 155458 [details]
Extract Interface dialog does not recognize caret position
Comment 2 stwr 2015-08-19 15:06:43 UTC
Created attachment 155459 [details]
Extract Superclass dialog recognizes caret position
Comment 3 Jiri Prox 2015-08-25 11:39:24 UTC
reproducible