From: <nr...@us...> - 2008-08-17 02:23:21
|
Revision: 5192 http://jython.svn.sourceforge.net/jython/?rev=5192&view=rev Author: nriley Date: 2008-08-17 02:23:19 +0000 (Sun, 17 Aug 2008) Log Message: ----------- Option to enable bytecode verifier. Modified Paths: -------------- branches/asm/src/shell/jython Modified: branches/asm/src/shell/jython =================================================================== --- branches/asm/src/shell/jython 2008-08-17 00:02:42 UTC (rev 5191) +++ branches/asm/src/shell/jython 2008-08-17 02:23:19 UTC (rev 5192) @@ -118,6 +118,10 @@ java_args=("${java_args[@]}" -javaagent:"$agent_path" -Dprofile.properties="$props_path") ;; + # Don't put Jython on the boot classpath (enables the verifier) + --verify) + verify_requested=true + ;; # Run under JDB --jdb) if [ -z "$JAVA_HOME" ] ; then @@ -169,8 +173,8 @@ fi fi -if [ -n "$profile_requested" ] ; then - echo "Running with instrumented profiler" +if [ -n "$profile_requested" -o -n "$verify_requested" ] ; then + [ -n "$profile_requested" ] && echo "Running with instrumented profiler" java_args=("${java_args[@]}" -classpath "$CP$CP_DELIMITER$CLASSPATH") else if [ -z $help_requested ] ; then @@ -190,6 +194,7 @@ echo "-Jarg : pass argument through to Java VM (e.g. -J-Xmx512m)" >&2 echo "--jdb : run under JDB" >&2 echo "--profile: run with the Java Interactive Profiler (http://jiprof.sf.net)" >&2 + echo "--verify : enable bytecode verifier for Jython classes (for development)" >&2 echo "-- : pass remaining arguments through to Jython" >&2 echo "Jython launcher environment variables:" >&2 echo "JAVA_HOME : Java installation directory" >&2 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |