xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
Re: [XOM-interest] XOM file causes my Eclipse editor to crash
- From: Elliotte Harold <elharo AT metalab.unc.edu>
- To: Asgeir Frimannsson <asgeirf AT gmail.com>
- Cc: xom-interest AT lists.ibiblio.org
- Subject: Re: [XOM-interest] XOM file causes my Eclipse editor to crash
- Date: Thu, 18 Oct 2007 06:14:54 -0400
Asgeir Frimannsson wrote:
Hi,
In the method nu.xom.UnicodeUtil.decompose(..) (Xom 1.2b) there is a
1900ish-levels nested if-else statement that causes my Eclipse java editor
to crash when opening the file. Yes, I know it's not a XOM-fault, but I
thought I'd throw it on the list anyway...
https://bugs.eclipse.org/bugs/show_bug.cgi?id=206697
This has been a known bug in Eclipse for a while and I've reported it before:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=154047
As a quick sidenote, the decompose method can be very easily refactored into
(IMO) a much cleaner switch() statement rather than the overly long if-else
statements (I have no idea if this also has performance improvements?)...
That's at least how I stopped my Eclipse from crashing :)
Interesting. My recollection is that that's how this method started. However that failed for other reasons related to maximum method size. It's been a while since I looked at this issue though, so I may be misremembering or something else related may have changed.
--
Elliotte Rusty Harold elharo AT metalab.unc.edu
Java I/O 2nd Edition Just Published!
http://www.cafeaulait.org/books/javaio2/
http://www.amazon.com/exec/obidos/ISBN=0596527500/ref=nosim/cafeaulaitA/
-
[XOM-interest] XOM file causes my Eclipse editor to crash,
Asgeir Frimannsson, 10/17/2007
-
Re: [XOM-interest] XOM file causes my Eclipse editor to crash,
Elliotte Harold, 10/18/2007
-
Re: [XOM-interest] XOM file causes my Eclipse editor to crash,
Michael Kay, 10/18/2007
-
Re: [XOM-interest] XOM file causes my Eclipse editor to crash,
Dave Pawson, 10/18/2007
-
Re: [XOM-interest] XOM file causes my Eclipse editor to crash,
Michael Kay, 10/18/2007
- Re: [XOM-interest] XOM file causes my Eclipse editor to crash, Dave Pawson, 10/18/2007
-
Re: [XOM-interest] XOM file causes my Eclipse editor to crash,
Michael Kay, 10/18/2007
- Re: [XOM-interest] XOM file causes my Eclipse editor to crash, Elliotte Harold, 10/18/2007
- Re: [XOM-interest] XOM file causes my Eclipse editor to crash, Thomas Hicks, 10/18/2007
-
Re: [XOM-interest] XOM file causes my Eclipse editor to crash,
Dave Pawson, 10/18/2007
-
Re: [XOM-interest] XOM file causes my Eclipse editor to crash,
Michael Kay, 10/18/2007
-
Re: [XOM-interest] XOM file causes my Eclipse editor to crash,
Elliotte Harold, 10/18/2007
Archive powered by MHonArc 2.6.24.