History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEABKL-3229
Type: New Feature New Feature
Status: Open Open
Priority: Normal Normal
Assignee: Alexey Kudravtsev
Reporter: Alain Ravet
Votes: 0
Watchers: 0
Available Workflow Actions

Mark as Stalled
Operations

If you were logged in you would be able to see more operations.
IDEA: Backlog

Casting should be suggested here:

Created: 29 Jun 05 22:57   Updated: 01 Nov 08 14:54
Component/s: Editor. Intention Actions
Affects Version/s: None
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 3,386


 Description  « Hide
(level language = Java5)

On the code below:

Object o = new Long (1);
long l = o; <------------- HERE

IDEA only suggests "Change 'l' type to Object"
, while another/better option would be to cast and obtain:

Object o = new Long (1);
long l = ((Long) o); <--------- ADD CAST HERE



 All   Comments   Work Log   Change History      Sort Order:
Nasokin Arseny - 01 Nov 08 13:02
in this case latest EAP(8975) generate error message
Object o = new Long (1);
long l = o; //<------------- HERE