Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 6681798
Votes 0
Synopsis (build) CharsetEncoder.java fails to compile in openjdk6 on ubuntu 8.04
Category java:classes_nio
Reported Against b09
Release Fixed 7(b33), 6-open(b12) (Bug ID:2165380)
State 10-Fix Delivered, bug
Priority: 3-Medium
Related Bugs 6704723
Submit Date 29-MAR-2008
Description
In compiling openjdk6 on ubuntu 8.04 it fails while compiling CharsetEncoder.java.
Compiling the same source on ubuntu 7.10 does not fail.  I asked an Ubuntu contact
about this and he claims it has to do with quoting problems in the spp.sh shell script
and referenced this icedtea patch

http://icedtea.classpath.org/hg/icedtea6/file/9bf416fd51f8/patches/icedtea-generated.patch

That changes SPP_CMD to use /bin/bash which probably is not a  customer  solution.

What occurs is CharsetEncoder.java is generated using a shell/sed/awk script from a
different source file.  It uses tags like $replType$ which get replaced with various
strings encoded in the script.  What happens is in the generated source file the
$replType$ tag is not replaced and the compiler barfs with a syntax error.
Posted Date : 2008-03-29 00:07:48.0
Work Around
A possible workaround is to change the symbolic link for /bin/sh which, by default, points to 'dash'.  One way to do this is with:  sudo dpkg-reconfigure dash

And answer "no"
Evaluation
This appears to be an issue with dash (on Ubuntu sh is linked to dash). All is okay with dash 0.5.3-1 but with dash 0.5.4-8 (the version with Hardy Herron/8.04) it seems that square brackets used in a sed script aren't passed through correctly to sed. This impacts the generation of code that involves the replacement of tokens with "byte[]". All is okay if sh is linked to bash.
Posted Date : 2008-04-01 18:26:45.0

Also see: https://bugs.launchpad.net/ubuntu/+source/dash/+bug/61463
Posted Date : 2008-06-02 19:24:52.0

replace spp.sh with a java regex based version.
Posted Date : 2008-06-19 05:05:11.0
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang