Bug 44839 - New formater fails with out of memory error
Summary: New formater fails with out of memory error
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P2 major (vote)
Target Milestone: 3.0 M5   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-14 14:14 EDT by Jeff Duska CLA
Modified: 2003-11-19 11:15 EST (History)
0 users

See Also:


Attachments
Log file compressed with Windows XP compressed folders (236.95 KB, application/octet-stream)
2003-10-14 14:45 EDT, Jeff Duska CLA
no flags Details
Try to format the given file (13.04 KB, text/plain)
2003-10-14 17:57 EDT, Olivier Thomann CLA
no flags Details

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