[Bug 2652] New: icedtea/cacao 2.6 fails as a build VM for icedtea

bugzilla-daemon at icedtea.classpath.org bugzilla-daemon at icedtea.classpath.org
Mon Sep 28 11:25:58 UTC 2015


            Bug ID: 2652
           Summary: icedtea/cacao 2.6 fails as a build VM for icedtea
           Product: IcedTea
           Version: 2.6.1
          Hardware: all
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: CACAO
          Assignee: stefan at complang.tuwien.ac.at
          Reporter: stefan at complang.tuwien.ac.at
                CC: unassigned at icedtea.classpath.org, xerxes at zafena.se

What happens is this:

mkdir -p /home/sr/staging/staging-build7-temp/icedtea7/rewriter.build
/home/sr/staging/staging-build7-temp/icedtea7/bootstrap/jdk1.6.0/bin/javac -g
-encoding utf-8  -J-Xmx1024m -Xprefer:source -source 7 -target 7 \
         -d /home/sr/staging/staging-build7-temp/icedtea7/rewriter.build
mkdir -p stamps
touch stamps/rewriter.stamp
mkdir -p rhino/rhino.{old,new} && \
        (cd rhino/rhino.old &&
/home/sr/staging/staging-build7-temp/icedtea7/bootstrap/jdk1.6.0/bin/jar xf
/usr/share/java/rhino.jar) && \
/home/sr/staging/staging-build7-temp/icedtea7/bootstrap/jdk1.6.0/bin/java -cp
/home/sr/staging/staging-build7-temp/icedtea7/rewriter.build \
          com.redhat.rewriter.ClassRewriter \
/home/sr/staging/staging-build7-temp/icedtea7/rhino/rhino.new \
          org.mozilla sun.org.mozilla && \
        (cd rhino/rhino.old && \
         for files in `find -type f -not -name '*.class'` ; do \
           new_file=../rhino.new/`echo $files|/bin/sed -e 's#org#sun/org#'` ; \
           mkdir -p `dirname $new_file` ; \
           cp -v $files $new_file ; \
           /bin/sed -ie 's#org\.mozilla#sun.org.mozilla#g' $new_file ; \
         done \
        ) && \
        (cd rhino/rhino.new && \
/home/sr/staging/staging-build7-temp/icedtea7/bootstrap/jdk1.6.0/bin/jar cfm
../rhino.jar META-INF/MANIFEST.MF sun )
Exception in thread "null" java.lang.ExceptionInInitializerError
Caused by: java.lang.NullPointerException
        at com.redhat.rewriter.ClassRewriter.<clinit>(ClassRewriter.java:52)
make: *** [stamps/rewrite-rhino.stamp] Error 1

very early in the build process.

I know why this happens and have a preliminary patch fixing it.

The real reason is that getPackage returns null because the classLoader field
is not set in java.lang.Class. The JDK code expects the VM to set this now.
This has been changed in OpenJDK with this changeset:

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20150928/7c6fe90f/attachment.html>

More information about the distro-pkg-dev mailing list