[Soot-list] SecurityException with compiler.compiler (specjvm2008)
Eric Bodden
bodden at st.informatik.tu-darmstadt.de
Sat Feb 13 05:11:39 EST 2010
Hi Manjiri.
Apparently you are modifying class files which reside in a signed JAR
file, which leads to trouble when a security manager is installed.
To answer your question: com.sun.* should become library classes by
default. You will find this in the Scene:
if( !Options.v().include_all() ) {
excludedPackages.add("java.");
excludedPackages.add("sun.");
excludedPackages.add("javax.");
excludedPackages.add("com.sun.");
excludedPackages.add("com.ibm.");
excludedPackages.add("org.xml.");
excludedPackages.add("org.w3c.");
excludedPackages.add("org.apache.");
excludedPackages.add("apple.awt.");
excludedPackages.add("com.apple.");
}
Eric
--
Dr. Eric Bodden
Software Technology Group, Technische Universität Darmstadt, Germany
Tel: +49 6151 16-5478 Fax: +49 6151 16-5410
Mailing Address: S2|02 A209, Hochschulstraße 10, 64289 Darmstadt
On 12 February 2010 22:01, Manjiri Namjoshi
<manjiri.namjoshi at googlemail.com> wrote:
> Hello,
>
> I am trying to run hotspot (Sun's JVM) on the annotated specjvm2008
> classfiles. I am using SOOT framework to annotate the classfiles.
> My question is regarding the compiler.compiler benchmark :
> After running soot, it generates some classes in the
> com.sun.tools.javac.util package. So these annotated classes are now
> present in the directory from which I run the specjvm2008 benchmarks.
> Also, not all the classes in the mentioned package are transformed by SOOT.
> I get SecurityException : class
> "com.sun.tools.javac.util.JavacFileManager$Archive"'s signer
> information does not match signer information of other classes in the
> same package
>
> But, if I specify -Xbootclasspath/p:.:$CLASSPATH (i.e. prepend current
> dir and $CLASSPATH to Xbootclasspath) and $CLASSPATH contains
> javac.jar, then the benchmark runs fine.
>
> So, my question is are the classes is com.sun.tools.javac loaded as
> library classes ? Or, are they a part of application classes ?
>
> Thank You.
>
> Sincerely,
> Manjiri
> _______________________________________________
> Soot-list mailing list
> Soot-list at sable.mcgill.ca
> http://mailman.cs.mcgill.ca/mailman/listinfo/soot-list
>
More information about the Soot-list
mailing list