rt.jar goes through several steps as it's being built, and the end result is that there's a crypto file that's not supposed to be in rt.jar. Isn't NOT_RT_JAR_LIST supposed to throttle all classes not supposed to be in rt.jar?
> I notice on Solaris that javax.crypto.SecretKey is in rt.jar but on
> Linux and Windows it's in jce.jar.
It's actually in both jars on Solaris. It definitely not supposed to be in rt.jar. I don't know why this file and only this file from javax.crypto showed up in rt.jar, and only on solaris builds.
NOT_RT_JAR_LIST = $(ABS_TEMPDIR)/not_rt_jar.list
$(ECHO) "#\n" >> $@
$(ECHO) "# List of subdirectories not in include in rt.jar" >> $@
$(ECHO) "# Directories must contain trailing '/'." >> $@
$(ECHO) "javax/crypto/" >> $@
$(TOTAL_JAR_FILELIST): $(JARREORDER_JARFILE) $(NOT_RT_JAR_LIST)
($(CD) $(CLASSBINDIR) && \
$(BOOT_JAVA_CMD) -jar $(JARREORDER_JARFILE) \
-o $@.temp $(ABS_LIBDIR)/classlist $(NOT_RT_JAR_LIST) . )
$(MV) $@.temp $@
@($(CD) $(CLASSBINDIR) && $(java-vm-cleanup))
% grep javax.crypto \
% jar -tvf /java/re/jdk/7/nightly/binaries/solaris-sparc/latest/jre/lib/rt.jar \
| grep javax.crypto
201 Sun Oct 25 03:51:20 PDT 2009 javax/crypto/SecretKey.class