<html>
<head>
<base href="http://icedtea.classpath.org/bugzilla/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - icedtea/cacao 2.6 fails as a build VM for icedtea"
href="http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=2652">2652</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>icedtea/cacao 2.6 fails as a build VM for icedtea
</td>
</tr>
<tr>
<th>Product</th>
<td>IcedTea
</td>
</tr>
<tr>
<th>Version</th>
<td>2.6.1
</td>
</tr>
<tr>
<th>Hardware</th>
<td>all
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P5
</td>
</tr>
<tr>
<th>Component</th>
<td>CACAO
</td>
</tr>
<tr>
<th>Assignee</th>
<td>stefan@complang.tuwien.ac.at
</td>
</tr>
<tr>
<th>Reporter</th>
<td>stefan@complang.tuwien.ac.at
</td>
</tr>
<tr>
<th>CC</th>
<td>unassigned@icedtea.classpath.org, xerxes@zafena.se
</td>
</tr></table>
<p>
<div>
<pre>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
./rewriter/com/redhat/rewriter/ClassRewriter.java
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.old
/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:
<a href="http://icedtea.classpath.org/hg/release/icedtea7-forest-2.6/jdk/rev/ac93f5941f48">http://icedtea.classpath.org/hg/release/icedtea7-forest-2.6/jdk/rev/ac93f5941f48</a></pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>