[Swift-devel] Swift parser fails under Java 1.6.0_07

Mihael Hategan hategan at mcs.anl.gov
Wed Nov 3 15:19:55 CDT 2010


On Wed, 2010-11-03 at 10:52 -0500, Michael Wilde wrote:
> I (with the help of a new user) just painfully re-discoverd that Swift's parser fails under the (somewhat old) Java JRE release 1.6.0_07 which happens to be the default under on the UChicago IBI cluster.
> 
> [wilde at ibicluster t2]$ java -version
> java version "1.6.0_07"
> Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
> Java HotSpot(TM) 64-Bit Server VM (build 10.0-b23, mixed mode)
> 
> When I run under 1.6.0_20 the problem does not occur.
> 
> Under _07, Swift fails compiling even the most trivial script, as in the example below, in which I include the complete log file.
> 
> Has anyone else seen this, and/or know the cause?
> 
> Im puzzled that the swift .log file doesn't start with the typical
> version and environment info. Its almost like swift is taking some
> strangely different execution path under 1.6.0_07.

I think the version is printed after compilation.

> 
> This is not yet a major issue, but its unsettling that a specific java version could trigger this behavior.

I suspect it's the version of SAX (xml parser) included with the JVM.

Which may also suggest a solution: use a good version of the SAX jar and
override the JVM provided one.

Mihael





More information about the Swift-devel mailing list