Bug 44839

Summary: New formater fails with out of memory error
Product: [Eclipse Project] JDT Reporter: Jeff Duska <Jeff.Duska>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED FIXED QA Contact:
Severity: major    
Priority: P2    
Version: 3.0   
Target Milestone: 3.0 M5   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Log file compressed with Windows XP compressed folders
none
Try to format the given file none

Description Jeff Duska CLA 2003-10-14 14:14:31 EDT
I tried to use the new formatter with the JDT of M4. When I do on a specific 
file, it crashes Eclipse with a memory error.
Comment 1 Jeff Duska CLA 2003-10-14 14:45:00 EDT
Created attachment 6421 [details]
Log file compressed with Windows XP compressed folders
Comment 2 Jeff Duska CLA 2003-10-14 17:23:20 EDT
Turns out it also corrupted the source file! It turned it into a 13+ meg file 
that would crash Eclipse.
Comment 3 Olivier Thomann CLA 2003-10-14 17:57:04 EDT
Need to investigate. Seems that the new formatter cannot format the given source
file. See attached source file.
Comment 4 Olivier Thomann CLA 2003-10-14 17:57:42 EDT
Created attachment 6424 [details]
Try to format the given file
Comment 5 Olivier Thomann CLA 2003-10-15 09:17:29 EDT
Fixed and released in HEAD. The problem was the unnecessary parenthesis
surrounding a cascading method invocation.
Regression tests added.
Comment 6 David Audel CLA 2003-11-19 11:15:08 EST
Verified.