Bug 161617

Summary: [ast rewrite] replacing InstanceofExpression.LEFT_OPERAND_PROPERTY should ensure whitespace
Product: [Eclipse Project] JDT Reporter: Brian Miller <bmiller>
Component: CoreAssignee: Martin Aeschlimann <martinae>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: markus.kell.r, martinae
Version: 3.2.1   
Target Milestone: 3.3 M4   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Fix none

Description Brian Miller CLA 2006-10-19 14:21:19 EDT
Try to extract a local from the expression "new Object()"

-------------------- Bug.java ----------------------
class Bug {
    {
        System.err.println(new Object()instanceof Object);
    }
}
Comment 1 Markus Keller CLA 2006-10-26 05:33:46 EDT
Released (disabled) regression test ExtractTempTest#test100() to HEAD.

This is a variant of bug 110963 and bug 103970. I'll attach a patch.
Comment 2 Markus Keller CLA 2006-10-26 05:34:32 EDT
Created attachment 52725 [details]
Fix
Comment 3 Martin Aeschlimann CLA 2006-11-23 11:53:05 EST
fixed > 20061123

Thanks Markus
Comment 4 David Audel CLA 2006-12-13 04:43:20 EST
Verified for 3.3M4 with I20061212-0010.