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 267732 - Use specific catch refactoring may break the code
Summary: Use specific catch refactoring may break the code
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 8.2
Hardware: PC Other
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-28 08:47 UTC by Maksim Khramov
Modified: 2016-08-28 08:47 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Source code to test problem (82.17 KB, text/x-java-source)
2016-08-28 08:47 UTC, Maksim Khramov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Maksim Khramov 2016-08-28 08:47:28 UTC
Created attachment 161789 [details]
Source code to test problem

Product Version: NetBeans IDE Dev (Build 201607270002)
Java: 1.8.0_102; Java HotSpot(TM) 64-Bit Server VM 25.102-b14
Runtime: Java(TM) SE Runtime Environment 1.8.0_102-b14

Steps to reproduce:
Open attached file and invoke Use Specific catch Inspection and Transform.
See the results preview. It's already wrong.

Proceed with refactoring. 
Line 1877 is missed opening bracket at the end.
Original code lines from 1879 to 1919 are disappears at all.