Bug 161617 - [ast rewrite] replacing InstanceofExpression.LEFT_OPERAND_PROPERTY should ensure whitespace
Summary: [ast rewrite] replacing InstanceofExpression.LEFT_OPERAND_PROPERTY should ens...
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.3 M4   Edit
Assignee: Martin Aeschlimann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-19 14:21 EDT by Brian Miller CLA
Modified: 2006-12-13 04:43 EST (History)
2 users (show)

See Also:


Attachments
Fix (1.44 KB, patch)
2006-10-26 05:34 EDT, Markus Keller CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.