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

Key: IDEADEV-23046
Type: Bug Bug
Status: Open Open
Priority: Normal Normal
Assignee: Maxim Shafirov
Reporter: t800t8
Votes: 0
Watchers: 0
Operations

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

Ctrl + Shift + Enter problem if array elements are not the same line

Created: 03 Oct 07 16:58   Updated: 06 Nov 08 23:06
Component/s: Editor. Code Completion
Fix Version/s: Undefined

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

Build: 7,318


 Description  « Hide
getJdbcTemplate().update(MOTORIST_INSERT, new Object[]{motorist.getEmail(), motorist.getPassword(),
                                                               motorist.getFirstName(), motorist.getLastName()})

If the cursor is placed somewhere in "motorist.getEmail(), motorist.getPassword(),", after pressing Ctrl + Shift + Enter, the code will look like this

getJdbcTemplate().update(MOTORIST_INSERT, new Object[]{motorist.getEmail(), motorist.getPassword(),});
        motorist.getFirstName(), motorist.getLastName()
    })

But if the cursor is placed in the second line and before "motorist.getFirstName(), motorist.getLastName()})", after pressing Ctrl + Shift + Enter, the code will look like this

getJdbcTemplate().update(MOTORIST_INSERT, new Object[]{motorist.getEmail(), motorist.getPassword(),
                // a blank line here
                                                               motorist.getFirstName(), motorist.getLastName()})


 All   Comments   Work Log   Change History      Sort Order:
t800t8 - 05 Nov 07 13:20
I found that it doesn't happen with array only and it happens with #7531. Please check these situations:
BeanFactory factory = new XmlBeanFactory(
    [Ctrl + Shift + Enter here]
)

-->

BeanFactory factory = new XmlBeanFactory(
    // blank line
        // blank line
)
CustomInitializationMethodNumberClass numberClass =
            [Ctrl + Shift + Space here]    (CustomInitializationMethodNumberClass) factory.getBean("numberClass")

-->

CustomInitializationMethodNumberClass numberClass =
            // blank line
            (CustomInitializationMethodNumberClass) factory.getBean("numberClass")