Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 123771

Summary: [typing] wrong indention after assert statement with instancof keyword
Product: [Eclipse Project] JDT Reporter: Ricky <ImmortalRick>
Component: TextAssignee: JDT-Text-Inbox <jdt-text-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: minor    
Priority: P3 CC: deepakazad
Version: 3.1   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard: stalebug

Description Ricky CLA 2006-01-13 10:27:26 EST
Given these two lines in a java editor

public IWizardPage getNextPage() {
        assert null instanceof Object:"bla";
X <- new cursor position

after pressing return at the end of the last row the cursor is moved to the same level as the public keyword instead of below the assert keyword.

This only happens when instanceof is used in the assert statement.

My source level compliance is set to 1.4 to make assert usable.
Comment 1 Eclipse Genie CLA 2020-01-19 14:43:06 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.