This looks like that sh vs. bash issue. See http://mail.openjdk.java.net/pipermail/nio-dev/2008-May/000026.html
-kto Sam K. Raju wrote:
Hi All, I had download the OpenJDK source code yesterday and tried to build it but I got compiler error. Somebody please help me to resolve this error. Please find error message in the attachment. Thanks, SAM