Bug 353725 - [generalize type] Should not suggest 'Object' inside try-with-resources
Summary: [generalize type] Should not suggest 'Object' inside try-with-resources
Status: CLOSED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.7.1   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Deepak Azad CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords: bugday
Depends on:
Blocks:
 
Reported: 2011-08-03 05:36 EDT by Dani Megert CLA
Modified: 2020-02-07 08:18 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dani Megert CLA 2011-08-03 05:36:07 EDT
I20110729-1200 and M20110729-1400.

[generalize type] Should not suggest 'Object' inside try-with-resources

1. paste this into Package Explorer:
import java.io.FileInputStream;
import java.io.IOException;

class Test {
	public static void main(String[] args) throws IOException {
		try (FileInputStream fis = null) {
		}
	}
}

2. select 'fis'
3. Generalize type to 'Object'
==> compile error.
Comment 1 Eclipse Genie CLA 2020-02-07 08:18:25 EST
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.