commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r910464 [23/38] - in /websites/production/commons/content/proper/commons-weaver: ./ apidocs/ apidocs/class-use/ apidocs/org/apache/commons/weaver/ apidocs/org/apache/commons/weaver/ant/ apidocs/org/apache/commons/weaver/ant/class-use/ apido...
Date Thu, 29 May 2014 22:55:01 GMT
Modified: websites/production/commons/content/proper/commons-weaver/commons-weaver-modules-parent/commons-weaver-privilizer-parent/commons-weaver-privilizer/xref/allclasses-frame.html
==============================================================================
--- websites/production/commons/content/proper/commons-weaver/commons-weaver-modules-parent/commons-weaver-privilizer-parent/commons-weaver-privilizer/xref/allclasses-frame.html (original)
+++ websites/production/commons/content/proper/commons-weaver/commons-weaver-modules-parent/commons-weaver-privilizer-parent/commons-weaver-privilizer/xref/allclasses-frame.html Thu May 29 22:54:45 2014
@@ -27,6 +27,9 @@
 				<a href="org/apache/commons/weaver/privilizer/BlueprintingVisitor.html" target="classFrame">BlueprintingVisitor</a>
 			</li>
 						<li>
+				<a href="org/apache/commons/weaver/privilizer/Privilizer.html" target="classFrame">CustomClassWriter</a>
+			</li>
+						<li>
 				<a href="org/apache/commons/weaver/privilizer/Field.html" target="classFrame">Field</a>
 			</li>
 						<li>

Modified: websites/production/commons/content/proper/commons-weaver/commons-weaver-modules-parent/commons-weaver-privilizer-parent/commons-weaver-privilizer/xref/index.html
==============================================================================
--- websites/production/commons/content/proper/commons-weaver/commons-weaver-modules-parent/commons-weaver-privilizer-parent/commons-weaver-privilizer/xref/index.html (original)
+++ websites/production/commons/content/proper/commons-weaver/commons-weaver-modules-parent/commons-weaver-privilizer-parent/commons-weaver-privilizer/xref/index.html Thu May 29 22:54:45 2014
@@ -4,7 +4,7 @@
 <!-- this is a JXR report set -->
 	<head>
 		<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
-		<title>Apache Commons Weaver Privilizer Weaver 1.0.1-SNAPSHOT Reference</title>
+		<title>Apache Commons Weaver Privilizer Weaver 1.1-SNAPSHOT Reference</title>
 	</head>
     <frameset cols="20%,80%">
 		<frameset rows="30%,70%">

Modified: websites/production/commons/content/proper/commons-weaver/commons-weaver-modules-parent/commons-weaver-privilizer-parent/commons-weaver-privilizer/xref/org/apache/commons/weaver/privilizer/ActionGenerator.html
==============================================================================
--- websites/production/commons/content/proper/commons-weaver/commons-weaver-modules-parent/commons-weaver-privilizer-parent/commons-weaver-privilizer/xref/org/apache/commons/weaver/privilizer/ActionGenerator.html (original)
+++ websites/production/commons/content/proper/commons-weaver/commons-weaver-modules-parent/commons-weaver-privilizer-parent/commons-weaver-privilizer/xref/org/apache/commons/weaver/privilizer/ActionGenerator.html Thu May 29 22:54:45 2014
@@ -70,7 +70,7 @@
 <a class="jxr_linenumber" name="L62" href="#L62">62</a>  <em class="jxr_javadoccomment">     * @param owner of the action class</em>
 <a class="jxr_linenumber" name="L63" href="#L63">63</a>  <em class="jxr_javadoccomment">     */</em>
 <a class="jxr_linenumber" name="L64" href="#L64">64</a>      <a href="../../../../../org/apache/commons/weaver/privilizer/ActionGenerator.html">ActionGenerator</a>(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> access, <strong class="jxr_keyword">final</strong> Method methd, <strong class="jxr_keyword">final</strong> String[] exceptions, <strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/commons/weaver/privilizer/PrivilizingVisitor.html">PrivilizingVisitor</a> owner) {
-<a class="jxr_linenumber" name="L65" href="#L65">65</a>          owner.privilizer().<strong class="jxr_keyword">super</strong>(<strong class="jxr_keyword">new</strong> ClassWriter(ClassWriter.COMPUTE_MAXS | ClassWriter.COMPUTE_FRAMES));
+<a class="jxr_linenumber" name="L65" href="#L65">65</a>          owner.privilizer().<strong class="jxr_keyword">super</strong>(ClassWriter.COMPUTE_MAXS | ClassWriter.COMPUTE_FRAMES);
 <a class="jxr_linenumber" name="L66" href="#L66">66</a>          <strong class="jxr_keyword">this</strong>.methd = methd;
 <a class="jxr_linenumber" name="L67" href="#L67">67</a>          <strong class="jxr_keyword">this</strong>.exc = ArrayUtils.isNotEmpty(exceptions);
 <a class="jxr_linenumber" name="L68" href="#L68">68</a>          <strong class="jxr_keyword">this</strong>.exceptions = exc ? <strong class="jxr_keyword">new</strong> Type[] { Type.getType(Exception.<strong class="jxr_keyword">class</strong>) } : <strong class="jxr_keyword">null</strong>;

Modified: websites/production/commons/content/proper/commons-weaver/commons-weaver-modules-parent/commons-weaver-privilizer-parent/commons-weaver-privilizer/xref/org/apache/commons/weaver/privilizer/BlueprintingVisitor.html
==============================================================================
--- websites/production/commons/content/proper/commons-weaver/commons-weaver-modules-parent/commons-weaver-privilizer-parent/commons-weaver-privilizer/xref/org/apache/commons/weaver/privilizer/BlueprintingVisitor.html (original)
+++ websites/production/commons/content/proper/commons-weaver/commons-weaver-modules-parent/commons-weaver-privilizer-parent/commons-weaver-privilizer/xref/org/apache/commons/weaver/privilizer/BlueprintingVisitor.html Thu May 29 22:54:45 2014
@@ -81,7 +81,7 @@
 <a class="jxr_linenumber" name="L73" href="#L73">73</a>      <a href="../../../../../org/apache/commons/weaver/privilizer/BlueprintingVisitor.html">BlueprintingVisitor</a>(<strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/commons/weaver/privilizer/Privilizer.html">Privilizer</a> privilizer,
 <a class="jxr_linenumber" name="L74" href="#L74">74</a>          <strong class="jxr_keyword">final</strong> ClassVisitor cv, <em class="jxr_comment">//NOPMD</em>
 <a class="jxr_linenumber" name="L75" href="#L75">75</a>          <strong class="jxr_keyword">final</strong> Privilizing config) {
-<a class="jxr_linenumber" name="L76" href="#L76">76</a>          privilizer.<strong class="jxr_keyword">super</strong>(<strong class="jxr_keyword">new</strong> ClassNode(Opcodes.ASM4));
+<a class="jxr_linenumber" name="L76" href="#L76">76</a>          privilizer.<strong class="jxr_keyword">super</strong>(<strong class="jxr_keyword">new</strong> ClassNode(Opcodes.ASM5));
 <a class="jxr_linenumber" name="L77" href="#L77">77</a>          <strong class="jxr_keyword">this</strong>.next = cv;
 <a class="jxr_linenumber" name="L78" href="#L78">78</a>  
 <a class="jxr_linenumber" name="L79" href="#L79">79</a>          <em class="jxr_comment">// load up blueprint methods:</em>
@@ -127,7 +127,7 @@
 <a class="jxr_linenumber" name="L119" href="#L119">119</a>     }
 <a class="jxr_linenumber" name="L120" href="#L120">120</a> 
 <a class="jxr_linenumber" name="L121" href="#L121">121</a>     <strong class="jxr_keyword">private</strong> ClassNode read(<strong class="jxr_keyword">final</strong> String className) {
-<a class="jxr_linenumber" name="L122" href="#L122">122</a>         <strong class="jxr_keyword">final</strong> ClassNode result = <strong class="jxr_keyword">new</strong> ClassNode(Opcodes.ASM4);
+<a class="jxr_linenumber" name="L122" href="#L122">122</a>         <strong class="jxr_keyword">final</strong> ClassNode result = <strong class="jxr_keyword">new</strong> ClassNode(Opcodes.ASM5);
 <a class="jxr_linenumber" name="L123" href="#L123">123</a>         InputStream bytecode = <strong class="jxr_keyword">null</strong>;
 <a class="jxr_linenumber" name="L124" href="#L124">124</a>         <strong class="jxr_keyword">try</strong> {
 <a class="jxr_linenumber" name="L125" href="#L125">125</a>             bytecode = privilizer().env.getClassfile(className).getInputStream();
@@ -179,7 +179,7 @@
 <a class="jxr_linenumber" name="L171" href="#L171">171</a>         <em class="jxr_comment">// non-public fields accessed</em>
 <a class="jxr_linenumber" name="L172" href="#L172">172</a>         <strong class="jxr_keyword">final</strong> Set&lt;FieldAccess&gt; fieldAccesses = <strong class="jxr_keyword">new</strong> LinkedHashSet&lt;FieldAccess&gt;();
 <a class="jxr_linenumber" name="L173" href="#L173">173</a> 
-<a class="jxr_linenumber" name="L174" href="#L174">174</a>         source.accept(<strong class="jxr_keyword">new</strong> MethodVisitor(Opcodes.ASM4) {
+<a class="jxr_linenumber" name="L174" href="#L174">174</a>         source.accept(<strong class="jxr_keyword">new</strong> MethodVisitor(Opcodes.ASM5) {
 <a class="jxr_linenumber" name="L175" href="#L175">175</a>             @Override
 <a class="jxr_linenumber" name="L176" href="#L176">176</a>             <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> visitFieldInsn(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> opcode, <strong class="jxr_keyword">final</strong> String owner, <strong class="jxr_keyword">final</strong> String name, <strong class="jxr_keyword">final</strong> String desc) {
 <a class="jxr_linenumber" name="L177" href="#L177">177</a>                 <strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/commons/weaver/privilizer/FieldAccess.html">FieldAccess</a> fieldAccess = fieldAccess(Type.getObjectType(owner), name);
@@ -270,236 +270,237 @@
 <a class="jxr_linenumber" name="L262" href="#L262">262</a> 
 <a class="jxr_linenumber" name="L263" href="#L263">263</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">abstract</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/commons/weaver/privilizer/BlueprintingVisitor.html">MethodInvocationHandler</a> <strong class="jxr_keyword">extends</strong> MethodVisitor {
 <a class="jxr_linenumber" name="L264" href="#L264">264</a>         <a href="../../../../../org/apache/commons/weaver/privilizer/BlueprintingVisitor.html">MethodInvocationHandler</a>(<strong class="jxr_keyword">final</strong> MethodVisitor mvr) {
-<a class="jxr_linenumber" name="L265" href="#L265">265</a>             <strong class="jxr_keyword">super</strong>(Opcodes.ASM4, mvr);
+<a class="jxr_linenumber" name="L265" href="#L265">265</a>             <strong class="jxr_keyword">super</strong>(Opcodes.ASM5, mvr);
 <a class="jxr_linenumber" name="L266" href="#L266">266</a>         }
 <a class="jxr_linenumber" name="L267" href="#L267">267</a> 
 <a class="jxr_linenumber" name="L268" href="#L268">268</a>         @Override
-<a class="jxr_linenumber" name="L269" href="#L269">269</a>         <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> visitMethodInsn(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> opcode, <strong class="jxr_keyword">final</strong> String owner, <strong class="jxr_keyword">final</strong> String name, <strong class="jxr_keyword">final</strong> String desc) {
-<a class="jxr_linenumber" name="L270" href="#L270">270</a>             <strong class="jxr_keyword">if</strong> (opcode == Opcodes.INVOKESTATIC) {
-<a class="jxr_linenumber" name="L271" href="#L271">271</a>                 <strong class="jxr_keyword">final</strong> Method methd = <strong class="jxr_keyword">new</strong> Method(name, desc);
-<a class="jxr_linenumber" name="L272" href="#L272">272</a>                 <strong class="jxr_keyword">final</strong> Pair&lt;Type, Method&gt; methodKey = Pair.of(Type.getObjectType(owner), methd);
-<a class="jxr_linenumber" name="L273" href="#L273">273</a>                 <strong class="jxr_keyword">if</strong> (shouldImport(methodKey)) {
-<a class="jxr_linenumber" name="L274" href="#L274">274</a>                     <strong class="jxr_keyword">final</strong> String importedName = importMethod(methodKey);
-<a class="jxr_linenumber" name="L275" href="#L275">275</a>                     <strong class="jxr_keyword">super</strong>.visitMethodInsn(opcode, className, importedName, desc);
-<a class="jxr_linenumber" name="L276" href="#L276">276</a>                     <strong class="jxr_keyword">return</strong>;
-<a class="jxr_linenumber" name="L277" href="#L277">277</a>                 }
-<a class="jxr_linenumber" name="L278" href="#L278">278</a>             }
-<a class="jxr_linenumber" name="L279" href="#L279">279</a>             <strong class="jxr_keyword">super</strong>.visitMethodInsn(opcode, owner, name, desc);
-<a class="jxr_linenumber" name="L280" href="#L280">280</a>         }
-<a class="jxr_linenumber" name="L281" href="#L281">281</a> 
-<a class="jxr_linenumber" name="L282" href="#L282">282</a>         <strong class="jxr_keyword">abstract</strong> <strong class="jxr_keyword">boolean</strong> shouldImport(Pair&lt;Type, Method&gt; methodKey);
-<a class="jxr_linenumber" name="L283" href="#L283">283</a>     }
-<a class="jxr_linenumber" name="L284" href="#L284">284</a> 
-<a class="jxr_linenumber" name="L285" href="#L285">285</a>     <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/commons/weaver/privilizer/BlueprintingVisitor.html">NestedMethodInvocationHandler</a> <strong class="jxr_keyword">extends</strong> <a href="../../../../../org/apache/commons/weaver/privilizer/BlueprintingVisitor.html">MethodInvocationHandler</a> {
-<a class="jxr_linenumber" name="L286" href="#L286">286</a>         <strong class="jxr_keyword">final</strong> Type owner;
-<a class="jxr_linenumber" name="L287" href="#L287">287</a> 
-<a class="jxr_linenumber" name="L288" href="#L288">288</a>         <a href="../../../../../org/apache/commons/weaver/privilizer/BlueprintingVisitor.html">NestedMethodInvocationHandler</a>(<strong class="jxr_keyword">final</strong> MethodVisitor mvr, <strong class="jxr_keyword">final</strong> Type owner) {
-<a class="jxr_linenumber" name="L289" href="#L289">289</a>             <strong class="jxr_keyword">super</strong>(mvr);
-<a class="jxr_linenumber" name="L290" href="#L290">290</a>             <strong class="jxr_keyword">this</strong>.owner = owner;
-<a class="jxr_linenumber" name="L291" href="#L291">291</a>         }
-<a class="jxr_linenumber" name="L292" href="#L292">292</a> 
-<a class="jxr_linenumber" name="L293" href="#L293">293</a>         @Override
-<a class="jxr_linenumber" name="L294" href="#L294">294</a>         <strong class="jxr_keyword">boolean</strong> shouldImport(<strong class="jxr_keyword">final</strong> Pair&lt;Type, Method&gt; methodKey) {
-<a class="jxr_linenumber" name="L295" href="#L295">295</a>             <em class="jxr_comment">// call anything called within a class hierarchy:</em>
-<a class="jxr_linenumber" name="L296" href="#L296">296</a>             <strong class="jxr_keyword">final</strong> Type called = methodKey.getLeft();
-<a class="jxr_linenumber" name="L297" href="#L297">297</a>             <em class="jxr_comment">// "I prefer the short cut":</em>
-<a class="jxr_linenumber" name="L298" href="#L298">298</a>             <strong class="jxr_keyword">if</strong> (called.equals(owner)) {
-<a class="jxr_linenumber" name="L299" href="#L299">299</a>                 <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">true</strong>;
-<a class="jxr_linenumber" name="L300" href="#L300">300</a>             }
-<a class="jxr_linenumber" name="L301" href="#L301">301</a>             <strong class="jxr_keyword">try</strong> {
-<a class="jxr_linenumber" name="L302" href="#L302">302</a>                 <strong class="jxr_keyword">final</strong> Class&lt;?&gt; <strong class="jxr_keyword">inner</strong> = load(called);
-<a class="jxr_linenumber" name="L303" href="#L303">303</a>                 <strong class="jxr_keyword">final</strong> Class&lt;?&gt; <strong class="jxr_keyword">outer</strong> = load(owner);
-<a class="jxr_linenumber" name="L304" href="#L304">304</a>                 <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">inner</strong>.isAssignableFrom(<strong class="jxr_keyword">outer</strong>);
-<a class="jxr_linenumber" name="L305" href="#L305">305</a>             } <strong class="jxr_keyword">catch</strong> (<strong class="jxr_keyword">final</strong> ClassNotFoundException e) {
-<a class="jxr_linenumber" name="L306" href="#L306">306</a>                 <strong class="jxr_keyword">return</strong> false;
-<a class="jxr_linenumber" name="L307" href="#L307">307</a>             }
-<a class="jxr_linenumber" name="L308" href="#L308">308</a>         }
-<a class="jxr_linenumber" name="L309" href="#L309">309</a> 
-<a class="jxr_linenumber" name="L310" href="#L310">310</a>         <strong class="jxr_keyword">private</strong> Class&lt;?&gt; load(<strong class="jxr_keyword">final</strong> Type type) <strong class="jxr_keyword">throws</strong> ClassNotFoundException {
-<a class="jxr_linenumber" name="L311" href="#L311">311</a>             <strong class="jxr_keyword">return</strong> privilizer().env.classLoader.loadClass(type.getClassName());
-<a class="jxr_linenumber" name="L312" href="#L312">312</a>         }
-<a class="jxr_linenumber" name="L313" href="#L313">313</a>     }
-<a class="jxr_linenumber" name="L314" href="#L314">314</a> 
-<a class="jxr_linenumber" name="L315" href="#L315">315</a>     <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="L316" href="#L316">316</a> <em class="jxr_javadoccomment">     * For every non-public referenced field of an imported method, replaces with reflective calls. Additionally, for</em>
-<a class="jxr_linenumber" name="L317" href="#L317">317</a> <em class="jxr_javadoccomment">     * every such field that is not accessible, sets the field's accessibility and clears it as the method exits.</em>
-<a class="jxr_linenumber" name="L318" href="#L318">318</a> <em class="jxr_javadoccomment">     */</em>
-<a class="jxr_linenumber" name="L319" href="#L319">319</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/commons/weaver/privilizer/BlueprintingVisitor.html">AccessibleAdvisor</a> <strong class="jxr_keyword">extends</strong> AdviceAdapter {
-<a class="jxr_linenumber" name="L320" href="#L320">320</a>         <strong class="jxr_keyword">final</strong> Type bitSetType = Type.getType(BitSet.<strong class="jxr_keyword">class</strong>);
-<a class="jxr_linenumber" name="L321" href="#L321">321</a>         <strong class="jxr_keyword">final</strong> Type classType = Type.getType(Class.<strong class="jxr_keyword">class</strong>);
-<a class="jxr_linenumber" name="L322" href="#L322">322</a>         <strong class="jxr_keyword">final</strong> Type fieldType = Type.getType(java.lang.reflect.Field.<strong class="jxr_keyword">class</strong>);
-<a class="jxr_linenumber" name="L323" href="#L323">323</a>         <strong class="jxr_keyword">final</strong> Type fieldArrayType = Type.getType(java.lang.reflect.Field[].<strong class="jxr_keyword">class</strong>);
-<a class="jxr_linenumber" name="L324" href="#L324">324</a>         <strong class="jxr_keyword">final</strong> Type stringType = Type.getType(String.<strong class="jxr_keyword">class</strong>);
-<a class="jxr_linenumber" name="L325" href="#L325">325</a> 
-<a class="jxr_linenumber" name="L326" href="#L326">326</a>         <strong class="jxr_keyword">final</strong> List&lt;FieldAccess&gt; fieldAccesses;
-<a class="jxr_linenumber" name="L327" href="#L327">327</a>         <strong class="jxr_keyword">final</strong> Label begin = <strong class="jxr_keyword">new</strong> Label();
-<a class="jxr_linenumber" name="L328" href="#L328">328</a>         <strong class="jxr_keyword">int</strong> localFieldArray;
-<a class="jxr_linenumber" name="L329" href="#L329">329</a>         <strong class="jxr_keyword">int</strong> bitSet;
-<a class="jxr_linenumber" name="L330" href="#L330">330</a>         <strong class="jxr_keyword">int</strong> fieldCounter;
-<a class="jxr_linenumber" name="L331" href="#L331">331</a> 
-<a class="jxr_linenumber" name="L332" href="#L332">332</a>         <a href="../../../../../org/apache/commons/weaver/privilizer/BlueprintingVisitor.html">AccessibleAdvisor</a>(<strong class="jxr_keyword">final</strong> MethodVisitor mvr, <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> access, <strong class="jxr_keyword">final</strong> String name, <strong class="jxr_keyword">final</strong> String desc,
-<a class="jxr_linenumber" name="L333" href="#L333">333</a>             <strong class="jxr_keyword">final</strong> List&lt;FieldAccess&gt; fieldAccesses) {
-<a class="jxr_linenumber" name="L334" href="#L334">334</a>             <strong class="jxr_keyword">super</strong>(ASM4, mvr, access, name, desc);
-<a class="jxr_linenumber" name="L335" href="#L335">335</a>             <strong class="jxr_keyword">this</strong>.fieldAccesses = fieldAccesses;
-<a class="jxr_linenumber" name="L336" href="#L336">336</a>         }
-<a class="jxr_linenumber" name="L337" href="#L337">337</a> 
-<a class="jxr_linenumber" name="L338" href="#L338">338</a>         @Override
-<a class="jxr_linenumber" name="L339" href="#L339">339</a>         <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">void</strong> onMethodEnter() {
-<a class="jxr_linenumber" name="L340" href="#L340">340</a>             localFieldArray = newLocal(fieldArrayType);
-<a class="jxr_linenumber" name="L341" href="#L341">341</a>             bitSet = newLocal(bitSetType);
-<a class="jxr_linenumber" name="L342" href="#L342">342</a>             fieldCounter = newLocal(Type.INT_TYPE);
-<a class="jxr_linenumber" name="L343" href="#L343">343</a> 
-<a class="jxr_linenumber" name="L344" href="#L344">344</a>             <em class="jxr_comment">// create localFieldArray</em>
-<a class="jxr_linenumber" name="L345" href="#L345">345</a>             push(fieldAccesses.size());
-<a class="jxr_linenumber" name="L346" href="#L346">346</a>             newArray(fieldArrayType.getElementType());
-<a class="jxr_linenumber" name="L347" href="#L347">347</a>             storeLocal(localFieldArray);
-<a class="jxr_linenumber" name="L348" href="#L348">348</a> 
-<a class="jxr_linenumber" name="L349" href="#L349">349</a>             <em class="jxr_comment">// create bitSet</em>
-<a class="jxr_linenumber" name="L350" href="#L350">350</a>             newInstance(bitSetType);
-<a class="jxr_linenumber" name="L351" href="#L351">351</a>             dup();
-<a class="jxr_linenumber" name="L352" href="#L352">352</a>             push(fieldAccesses.size());
-<a class="jxr_linenumber" name="L353" href="#L353">353</a>             invokeConstructor(bitSetType, Method.getMethod(<span class="jxr_string">"void &lt;init&gt;(int)"</span>));
-<a class="jxr_linenumber" name="L354" href="#L354">354</a>             storeLocal(bitSet);
-<a class="jxr_linenumber" name="L355" href="#L355">355</a> 
-<a class="jxr_linenumber" name="L356" href="#L356">356</a>             <em class="jxr_comment">// populate localFieldArray</em>
-<a class="jxr_linenumber" name="L357" href="#L357">357</a>             push(0);
-<a class="jxr_linenumber" name="L358" href="#L358">358</a>             storeLocal(fieldCounter);
-<a class="jxr_linenumber" name="L359" href="#L359">359</a>             <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">final</strong> FieldAccess access : fieldAccesses) {
-<a class="jxr_linenumber" name="L360" href="#L360">360</a>                 prehandle(access);
-<a class="jxr_linenumber" name="L361" href="#L361">361</a>                 iinc(fieldCounter, 1);
-<a class="jxr_linenumber" name="L362" href="#L362">362</a>             }
-<a class="jxr_linenumber" name="L363" href="#L363">363</a>             mark(begin);
-<a class="jxr_linenumber" name="L364" href="#L364">364</a>         }
-<a class="jxr_linenumber" name="L365" href="#L365">365</a> 
-<a class="jxr_linenumber" name="L366" href="#L366">366</a>         <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> prehandle(<strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/commons/weaver/privilizer/FieldAccess.html">FieldAccess</a> access) {
-<a class="jxr_linenumber" name="L367" href="#L367">367</a>             <em class="jxr_comment">// push owner.class literal</em>
-<a class="jxr_linenumber" name="L368" href="#L368">368</a>             visitLdcInsn(access.owner);
-<a class="jxr_linenumber" name="L369" href="#L369">369</a>             push(access.name);
-<a class="jxr_linenumber" name="L370" href="#L370">370</a>             <strong class="jxr_keyword">final</strong> Label next = <strong class="jxr_keyword">new</strong> Label();
-<a class="jxr_linenumber" name="L371" href="#L371">371</a>             invokeVirtual(classType, <strong class="jxr_keyword">new</strong> Method(<span class="jxr_string">"getDeclaredField"</span>, fieldType, <strong class="jxr_keyword">new</strong> Type[] { stringType }));
-<a class="jxr_linenumber" name="L372" href="#L372">372</a> 
-<a class="jxr_linenumber" name="L373" href="#L373">373</a>             dup();
-<a class="jxr_linenumber" name="L374" href="#L374">374</a>             <em class="jxr_comment">// store the field at localFieldArray[fieldCounter]:</em>
-<a class="jxr_linenumber" name="L375" href="#L375">375</a>             loadLocal(localFieldArray);
-<a class="jxr_linenumber" name="L376" href="#L376">376</a>             swap();
-<a class="jxr_linenumber" name="L377" href="#L377">377</a>             loadLocal(fieldCounter);
-<a class="jxr_linenumber" name="L378" href="#L378">378</a>             swap();
-<a class="jxr_linenumber" name="L379" href="#L379">379</a>             arrayStore(fieldArrayType.getElementType());
-<a class="jxr_linenumber" name="L380" href="#L380">380</a> 
-<a class="jxr_linenumber" name="L381" href="#L381">381</a>             dup();
-<a class="jxr_linenumber" name="L382" href="#L382">382</a>             invokeVirtual(fieldArrayType.getElementType(), Method.getMethod(<span class="jxr_string">"boolean isAccessible()"</span>));
-<a class="jxr_linenumber" name="L383" href="#L383">383</a> 
-<a class="jxr_linenumber" name="L384" href="#L384">384</a>             <strong class="jxr_keyword">final</strong> Label setAccessible = <strong class="jxr_keyword">new</strong> Label();
-<a class="jxr_linenumber" name="L385" href="#L385">385</a>             <em class="jxr_comment">// if false, setAccessible:</em>
-<a class="jxr_linenumber" name="L386" href="#L386">386</a>             ifZCmp(EQ, setAccessible);
-<a class="jxr_linenumber" name="L387" href="#L387">387</a> 
-<a class="jxr_linenumber" name="L388" href="#L388">388</a>             <em class="jxr_comment">// else pop field instance</em>
-<a class="jxr_linenumber" name="L389" href="#L389">389</a>             pop();
-<a class="jxr_linenumber" name="L390" href="#L390">390</a>             <em class="jxr_comment">// and record that he was already accessible:</em>
-<a class="jxr_linenumber" name="L391" href="#L391">391</a>             loadLocal(bitSet);
-<a class="jxr_linenumber" name="L392" href="#L392">392</a>             loadLocal(fieldCounter);
-<a class="jxr_linenumber" name="L393" href="#L393">393</a>             invokeVirtual(bitSetType, Method.getMethod(<span class="jxr_string">"void set(int)"</span>));
-<a class="jxr_linenumber" name="L394" href="#L394">394</a>             goTo(next);
-<a class="jxr_linenumber" name="L395" href="#L395">395</a> 
-<a class="jxr_linenumber" name="L396" href="#L396">396</a>             mark(setAccessible);
-<a class="jxr_linenumber" name="L397" href="#L397">397</a>             push(<strong class="jxr_keyword">true</strong>);
-<a class="jxr_linenumber" name="L398" href="#L398">398</a>             invokeVirtual(fieldArrayType.getElementType(), Method.getMethod(<span class="jxr_string">"void setAccessible(boolean)"</span>));
-<a class="jxr_linenumber" name="L399" href="#L399">399</a> 
-<a class="jxr_linenumber" name="L400" href="#L400">400</a>             mark(next);
-<a class="jxr_linenumber" name="L401" href="#L401">401</a>         }
-<a class="jxr_linenumber" name="L402" href="#L402">402</a> 
-<a class="jxr_linenumber" name="L403" href="#L403">403</a>         @Override
-<a class="jxr_linenumber" name="L404" href="#L404">404</a>         <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> visitFieldInsn(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> opcode, <strong class="jxr_keyword">final</strong> String owner, <strong class="jxr_keyword">final</strong> String name, <strong class="jxr_keyword">final</strong> String desc) {
-<a class="jxr_linenumber" name="L405" href="#L405">405</a>             <strong class="jxr_keyword">final</strong> Pair&lt;Type, String&gt; key = Pair.of(Type.getObjectType(owner), name);
-<a class="jxr_linenumber" name="L406" href="#L406">406</a>             <strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/commons/weaver/privilizer/FieldAccess.html">FieldAccess</a> fieldAccess = fieldAccessMap.get(key);
-<a class="jxr_linenumber" name="L407" href="#L407">407</a>             Validate.isTrue(fieldAccesses.contains(fieldAccess), <span class="jxr_string">"Cannot find field %s"</span>, key);
-<a class="jxr_linenumber" name="L408" href="#L408">408</a>             <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> fieldIndex = fieldAccesses.indexOf(fieldAccess);
-<a class="jxr_linenumber" name="L409" href="#L409">409</a>             visitInsn(NOP);
-<a class="jxr_linenumber" name="L410" href="#L410">410</a>             loadLocal(localFieldArray);
-<a class="jxr_linenumber" name="L411" href="#L411">411</a>             push(fieldIndex);
-<a class="jxr_linenumber" name="L412" href="#L412">412</a>             arrayLoad(fieldArrayType.getElementType());
-<a class="jxr_linenumber" name="L413" href="#L413">413</a>             checkCast(fieldType);
-<a class="jxr_linenumber" name="L414" href="#L414">414</a> 
-<a class="jxr_linenumber" name="L415" href="#L415">415</a>             <strong class="jxr_keyword">final</strong> Method access;
-<a class="jxr_linenumber" name="L416" href="#L416">416</a>             <strong class="jxr_keyword">if</strong> (opcode == PUTSTATIC) {
-<a class="jxr_linenumber" name="L417" href="#L417">417</a>                 <em class="jxr_comment">// value should have been at top of stack on entry; position the field under the value:</em>
-<a class="jxr_linenumber" name="L418" href="#L418">418</a>                 swap();
-<a class="jxr_linenumber" name="L419" href="#L419">419</a>                 <em class="jxr_comment">// add null object for static field deref and swap under value:</em>
-<a class="jxr_linenumber" name="L420" href="#L420">420</a>                 push((String) <strong class="jxr_keyword">null</strong>);
-<a class="jxr_linenumber" name="L421" href="#L421">421</a>                 swap();
-<a class="jxr_linenumber" name="L422" href="#L422">422</a>                 <strong class="jxr_keyword">if</strong> (fieldAccess.type.getSort() &lt; Type.ARRAY) {
-<a class="jxr_linenumber" name="L423" href="#L423">423</a>                     <em class="jxr_comment">// box value:</em>
-<a class="jxr_linenumber" name="L424" href="#L424">424</a>                     valueOf(fieldAccess.type);
-<a class="jxr_linenumber" name="L425" href="#L425">425</a>                 }
-<a class="jxr_linenumber" name="L426" href="#L426">426</a>                 access = Method.getMethod(<span class="jxr_string">"void set(Object, Object)"</span>);
-<a class="jxr_linenumber" name="L427" href="#L427">427</a>             } <strong class="jxr_keyword">else</strong> {
-<a class="jxr_linenumber" name="L428" href="#L428">428</a>                 access = Method.getMethod(<span class="jxr_string">"Object get(Object)"</span>);
-<a class="jxr_linenumber" name="L429" href="#L429">429</a>                 <em class="jxr_comment">// add null object for static field deref:</em>
-<a class="jxr_linenumber" name="L430" href="#L430">430</a>                 push((String) <strong class="jxr_keyword">null</strong>);
-<a class="jxr_linenumber" name="L431" href="#L431">431</a>             }
-<a class="jxr_linenumber" name="L432" href="#L432">432</a> 
-<a class="jxr_linenumber" name="L433" href="#L433">433</a>             invokeVirtual(fieldType, access);
-<a class="jxr_linenumber" name="L434" href="#L434">434</a> 
-<a class="jxr_linenumber" name="L435" href="#L435">435</a>             <strong class="jxr_keyword">if</strong> (opcode == GETSTATIC) {
-<a class="jxr_linenumber" name="L436" href="#L436">436</a>                 checkCast(privilizer().wrap(fieldAccess.type));
-<a class="jxr_linenumber" name="L437" href="#L437">437</a>                 <strong class="jxr_keyword">if</strong> (fieldAccess.type.getSort() &lt; Type.ARRAY) {
-<a class="jxr_linenumber" name="L438" href="#L438">438</a>                     unbox(fieldAccess.type);
-<a class="jxr_linenumber" name="L439" href="#L439">439</a>                 }
-<a class="jxr_linenumber" name="L440" href="#L440">440</a>             }
-<a class="jxr_linenumber" name="L441" href="#L441">441</a>         }
-<a class="jxr_linenumber" name="L442" href="#L442">442</a> 
-<a class="jxr_linenumber" name="L443" href="#L443">443</a>         @Override
-<a class="jxr_linenumber" name="L444" href="#L444">444</a>         <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> visitMaxs(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> maxStack, <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> maxLocals) {
-<a class="jxr_linenumber" name="L445" href="#L445">445</a>             <em class="jxr_comment">// put try-finally around the whole method</em>
-<a class="jxr_linenumber" name="L446" href="#L446">446</a>             <strong class="jxr_keyword">final</strong> Label fny = mark();
-<a class="jxr_linenumber" name="L447" href="#L447">447</a>             <em class="jxr_comment">// null exception type signifies finally block:</em>
-<a class="jxr_linenumber" name="L448" href="#L448">448</a>             <strong class="jxr_keyword">final</strong> Type exceptionType = <strong class="jxr_keyword">null</strong>;
-<a class="jxr_linenumber" name="L449" href="#L449">449</a>             catchException(begin, fny, exceptionType);
-<a class="jxr_linenumber" name="L450" href="#L450">450</a>             onFinally();
-<a class="jxr_linenumber" name="L451" href="#L451">451</a>             throwException();
-<a class="jxr_linenumber" name="L452" href="#L452">452</a>             <strong class="jxr_keyword">super</strong>.visitMaxs(maxStack, maxLocals);
-<a class="jxr_linenumber" name="L453" href="#L453">453</a>         }
-<a class="jxr_linenumber" name="L454" href="#L454">454</a> 
-<a class="jxr_linenumber" name="L455" href="#L455">455</a>         @Override
-<a class="jxr_linenumber" name="L456" href="#L456">456</a>         <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">void</strong> onMethodExit(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> opcode) {
-<a class="jxr_linenumber" name="L457" href="#L457">457</a>             <strong class="jxr_keyword">if</strong> (opcode != ATHROW) {
-<a class="jxr_linenumber" name="L458" href="#L458">458</a>                 onFinally();
-<a class="jxr_linenumber" name="L459" href="#L459">459</a>             }
-<a class="jxr_linenumber" name="L460" href="#L460">460</a>         }
-<a class="jxr_linenumber" name="L461" href="#L461">461</a> 
-<a class="jxr_linenumber" name="L462" href="#L462">462</a>         <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> onFinally() {
-<a class="jxr_linenumber" name="L463" href="#L463">463</a>             <em class="jxr_comment">// loop over fields and return any non-null element to being inaccessible:</em>
-<a class="jxr_linenumber" name="L464" href="#L464">464</a>             push(0);
-<a class="jxr_linenumber" name="L465" href="#L465">465</a>             storeLocal(fieldCounter);
-<a class="jxr_linenumber" name="L466" href="#L466">466</a> 
-<a class="jxr_linenumber" name="L467" href="#L467">467</a>             <strong class="jxr_keyword">final</strong> Label test = mark();
-<a class="jxr_linenumber" name="L468" href="#L468">468</a>             <strong class="jxr_keyword">final</strong> Label increment = <strong class="jxr_keyword">new</strong> Label();
-<a class="jxr_linenumber" name="L469" href="#L469">469</a>             <strong class="jxr_keyword">final</strong> Label endFinally = <strong class="jxr_keyword">new</strong> Label();
-<a class="jxr_linenumber" name="L470" href="#L470">470</a> 
-<a class="jxr_linenumber" name="L471" href="#L471">471</a>             loadLocal(fieldCounter);
-<a class="jxr_linenumber" name="L472" href="#L472">472</a>             push(fieldAccesses.size());
-<a class="jxr_linenumber" name="L473" href="#L473">473</a>             ifCmp(Type.INT_TYPE, GeneratorAdapter.GE, endFinally);
-<a class="jxr_linenumber" name="L474" href="#L474">474</a> 
-<a class="jxr_linenumber" name="L475" href="#L475">475</a>             loadLocal(bitSet);
-<a class="jxr_linenumber" name="L476" href="#L476">476</a>             loadLocal(fieldCounter);
-<a class="jxr_linenumber" name="L477" href="#L477">477</a>             invokeVirtual(bitSetType, Method.getMethod(<span class="jxr_string">"boolean get(int)"</span>));
-<a class="jxr_linenumber" name="L478" href="#L478">478</a> 
-<a class="jxr_linenumber" name="L479" href="#L479">479</a>             <em class="jxr_comment">// if true, increment:</em>
-<a class="jxr_linenumber" name="L480" href="#L480">480</a>             ifZCmp(NE, increment);
-<a class="jxr_linenumber" name="L481" href="#L481">481</a> 
-<a class="jxr_linenumber" name="L482" href="#L482">482</a>             loadLocal(localFieldArray);
-<a class="jxr_linenumber" name="L483" href="#L483">483</a>             loadLocal(fieldCounter);
-<a class="jxr_linenumber" name="L484" href="#L484">484</a>             arrayLoad(fieldArrayType.getElementType());
-<a class="jxr_linenumber" name="L485" href="#L485">485</a>             push(false);
-<a class="jxr_linenumber" name="L486" href="#L486">486</a>             invokeVirtual(fieldArrayType.getElementType(), Method.getMethod(<span class="jxr_string">"void setAccessible(boolean)"</span>));
-<a class="jxr_linenumber" name="L487" href="#L487">487</a> 
-<a class="jxr_linenumber" name="L488" href="#L488">488</a>             mark(increment);
-<a class="jxr_linenumber" name="L489" href="#L489">489</a>             iinc(fieldCounter, 1);
-<a class="jxr_linenumber" name="L490" href="#L490">490</a>             goTo(test);
-<a class="jxr_linenumber" name="L491" href="#L491">491</a>             mark(endFinally);
-<a class="jxr_linenumber" name="L492" href="#L492">492</a>         }
-<a class="jxr_linenumber" name="L493" href="#L493">493</a>     }
-<a class="jxr_linenumber" name="L494" href="#L494">494</a> }
+<a class="jxr_linenumber" name="L269" href="#L269">269</a>         <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> visitMethodInsn(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> opcode, <strong class="jxr_keyword">final</strong> String owner, <strong class="jxr_keyword">final</strong> String name, <strong class="jxr_keyword">final</strong> String desc,
+<a class="jxr_linenumber" name="L270" href="#L270">270</a>             <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">boolean</strong> itf) {
+<a class="jxr_linenumber" name="L271" href="#L271">271</a>             <strong class="jxr_keyword">if</strong> (opcode == Opcodes.INVOKESTATIC) {
+<a class="jxr_linenumber" name="L272" href="#L272">272</a>                 <strong class="jxr_keyword">final</strong> Method methd = <strong class="jxr_keyword">new</strong> Method(name, desc);
+<a class="jxr_linenumber" name="L273" href="#L273">273</a>                 <strong class="jxr_keyword">final</strong> Pair&lt;Type, Method&gt; methodKey = Pair.of(Type.getObjectType(owner), methd);
+<a class="jxr_linenumber" name="L274" href="#L274">274</a>                 <strong class="jxr_keyword">if</strong> (shouldImport(methodKey)) {
+<a class="jxr_linenumber" name="L275" href="#L275">275</a>                     <strong class="jxr_keyword">final</strong> String importedName = importMethod(methodKey);
+<a class="jxr_linenumber" name="L276" href="#L276">276</a>                     <strong class="jxr_keyword">super</strong>.visitMethodInsn(opcode, className, importedName, desc, itf);
+<a class="jxr_linenumber" name="L277" href="#L277">277</a>                     <strong class="jxr_keyword">return</strong>;
+<a class="jxr_linenumber" name="L278" href="#L278">278</a>                 }
+<a class="jxr_linenumber" name="L279" href="#L279">279</a>             }
+<a class="jxr_linenumber" name="L280" href="#L280">280</a>             <strong class="jxr_keyword">super</strong>.visitMethodInsn(opcode, owner, name, desc, itf);
+<a class="jxr_linenumber" name="L281" href="#L281">281</a>         }
+<a class="jxr_linenumber" name="L282" href="#L282">282</a> 
+<a class="jxr_linenumber" name="L283" href="#L283">283</a>         <strong class="jxr_keyword">abstract</strong> <strong class="jxr_keyword">boolean</strong> shouldImport(Pair&lt;Type, Method&gt; methodKey);
+<a class="jxr_linenumber" name="L284" href="#L284">284</a>     }
+<a class="jxr_linenumber" name="L285" href="#L285">285</a> 
+<a class="jxr_linenumber" name="L286" href="#L286">286</a>     <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/commons/weaver/privilizer/BlueprintingVisitor.html">NestedMethodInvocationHandler</a> <strong class="jxr_keyword">extends</strong> <a href="../../../../../org/apache/commons/weaver/privilizer/BlueprintingVisitor.html">MethodInvocationHandler</a> {
+<a class="jxr_linenumber" name="L287" href="#L287">287</a>         <strong class="jxr_keyword">final</strong> Type owner;
+<a class="jxr_linenumber" name="L288" href="#L288">288</a> 
+<a class="jxr_linenumber" name="L289" href="#L289">289</a>         <a href="../../../../../org/apache/commons/weaver/privilizer/BlueprintingVisitor.html">NestedMethodInvocationHandler</a>(<strong class="jxr_keyword">final</strong> MethodVisitor mvr, <strong class="jxr_keyword">final</strong> Type owner) {
+<a class="jxr_linenumber" name="L290" href="#L290">290</a>             <strong class="jxr_keyword">super</strong>(mvr);
+<a class="jxr_linenumber" name="L291" href="#L291">291</a>             <strong class="jxr_keyword">this</strong>.owner = owner;
+<a class="jxr_linenumber" name="L292" href="#L292">292</a>         }
+<a class="jxr_linenumber" name="L293" href="#L293">293</a> 
+<a class="jxr_linenumber" name="L294" href="#L294">294</a>         @Override
+<a class="jxr_linenumber" name="L295" href="#L295">295</a>         <strong class="jxr_keyword">boolean</strong> shouldImport(<strong class="jxr_keyword">final</strong> Pair&lt;Type, Method&gt; methodKey) {
+<a class="jxr_linenumber" name="L296" href="#L296">296</a>             <em class="jxr_comment">// call anything called within a class hierarchy:</em>
+<a class="jxr_linenumber" name="L297" href="#L297">297</a>             <strong class="jxr_keyword">final</strong> Type called = methodKey.getLeft();
+<a class="jxr_linenumber" name="L298" href="#L298">298</a>             <em class="jxr_comment">// "I prefer the short cut":</em>
+<a class="jxr_linenumber" name="L299" href="#L299">299</a>             <strong class="jxr_keyword">if</strong> (called.equals(owner)) {
+<a class="jxr_linenumber" name="L300" href="#L300">300</a>                 <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">true</strong>;
+<a class="jxr_linenumber" name="L301" href="#L301">301</a>             }
+<a class="jxr_linenumber" name="L302" href="#L302">302</a>             <strong class="jxr_keyword">try</strong> {
+<a class="jxr_linenumber" name="L303" href="#L303">303</a>                 <strong class="jxr_keyword">final</strong> Class&lt;?&gt; <strong class="jxr_keyword">inner</strong> = load(called);
+<a class="jxr_linenumber" name="L304" href="#L304">304</a>                 <strong class="jxr_keyword">final</strong> Class&lt;?&gt; <strong class="jxr_keyword">outer</strong> = load(owner);
+<a class="jxr_linenumber" name="L305" href="#L305">305</a>                 <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">inner</strong>.isAssignableFrom(<strong class="jxr_keyword">outer</strong>);
+<a class="jxr_linenumber" name="L306" href="#L306">306</a>             } <strong class="jxr_keyword">catch</strong> (<strong class="jxr_keyword">final</strong> ClassNotFoundException e) {
+<a class="jxr_linenumber" name="L307" href="#L307">307</a>                 <strong class="jxr_keyword">return</strong> false;
+<a class="jxr_linenumber" name="L308" href="#L308">308</a>             }
+<a class="jxr_linenumber" name="L309" href="#L309">309</a>         }
+<a class="jxr_linenumber" name="L310" href="#L310">310</a> 
+<a class="jxr_linenumber" name="L311" href="#L311">311</a>         <strong class="jxr_keyword">private</strong> Class&lt;?&gt; load(<strong class="jxr_keyword">final</strong> Type type) <strong class="jxr_keyword">throws</strong> ClassNotFoundException {
+<a class="jxr_linenumber" name="L312" href="#L312">312</a>             <strong class="jxr_keyword">return</strong> privilizer().env.classLoader.loadClass(type.getClassName());
+<a class="jxr_linenumber" name="L313" href="#L313">313</a>         }
+<a class="jxr_linenumber" name="L314" href="#L314">314</a>     }
+<a class="jxr_linenumber" name="L315" href="#L315">315</a> 
+<a class="jxr_linenumber" name="L316" href="#L316">316</a>     <em class="jxr_javadoccomment">/**</em>
+<a class="jxr_linenumber" name="L317" href="#L317">317</a> <em class="jxr_javadoccomment">     * For every non-public referenced field of an imported method, replaces with reflective calls. Additionally, for</em>
+<a class="jxr_linenumber" name="L318" href="#L318">318</a> <em class="jxr_javadoccomment">     * every such field that is not accessible, sets the field's accessibility and clears it as the method exits.</em>
+<a class="jxr_linenumber" name="L319" href="#L319">319</a> <em class="jxr_javadoccomment">     */</em>
+<a class="jxr_linenumber" name="L320" href="#L320">320</a>     <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/commons/weaver/privilizer/BlueprintingVisitor.html">AccessibleAdvisor</a> <strong class="jxr_keyword">extends</strong> AdviceAdapter {
+<a class="jxr_linenumber" name="L321" href="#L321">321</a>         <strong class="jxr_keyword">final</strong> Type bitSetType = Type.getType(BitSet.<strong class="jxr_keyword">class</strong>);
+<a class="jxr_linenumber" name="L322" href="#L322">322</a>         <strong class="jxr_keyword">final</strong> Type classType = Type.getType(Class.<strong class="jxr_keyword">class</strong>);
+<a class="jxr_linenumber" name="L323" href="#L323">323</a>         <strong class="jxr_keyword">final</strong> Type fieldType = Type.getType(java.lang.reflect.Field.<strong class="jxr_keyword">class</strong>);
+<a class="jxr_linenumber" name="L324" href="#L324">324</a>         <strong class="jxr_keyword">final</strong> Type fieldArrayType = Type.getType(java.lang.reflect.Field[].<strong class="jxr_keyword">class</strong>);
+<a class="jxr_linenumber" name="L325" href="#L325">325</a>         <strong class="jxr_keyword">final</strong> Type stringType = Type.getType(String.<strong class="jxr_keyword">class</strong>);
+<a class="jxr_linenumber" name="L326" href="#L326">326</a> 
+<a class="jxr_linenumber" name="L327" href="#L327">327</a>         <strong class="jxr_keyword">final</strong> List&lt;FieldAccess&gt; fieldAccesses;
+<a class="jxr_linenumber" name="L328" href="#L328">328</a>         <strong class="jxr_keyword">final</strong> Label begin = <strong class="jxr_keyword">new</strong> Label();
+<a class="jxr_linenumber" name="L329" href="#L329">329</a>         <strong class="jxr_keyword">int</strong> localFieldArray;
+<a class="jxr_linenumber" name="L330" href="#L330">330</a>         <strong class="jxr_keyword">int</strong> bitSet;
+<a class="jxr_linenumber" name="L331" href="#L331">331</a>         <strong class="jxr_keyword">int</strong> fieldCounter;
+<a class="jxr_linenumber" name="L332" href="#L332">332</a> 
+<a class="jxr_linenumber" name="L333" href="#L333">333</a>         <a href="../../../../../org/apache/commons/weaver/privilizer/BlueprintingVisitor.html">AccessibleAdvisor</a>(<strong class="jxr_keyword">final</strong> MethodVisitor mvr, <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> access, <strong class="jxr_keyword">final</strong> String name, <strong class="jxr_keyword">final</strong> String desc,
+<a class="jxr_linenumber" name="L334" href="#L334">334</a>             <strong class="jxr_keyword">final</strong> List&lt;FieldAccess&gt; fieldAccesses) {
+<a class="jxr_linenumber" name="L335" href="#L335">335</a>             <strong class="jxr_keyword">super</strong>(ASM5, mvr, access, name, desc);
+<a class="jxr_linenumber" name="L336" href="#L336">336</a>             <strong class="jxr_keyword">this</strong>.fieldAccesses = fieldAccesses;
+<a class="jxr_linenumber" name="L337" href="#L337">337</a>         }
+<a class="jxr_linenumber" name="L338" href="#L338">338</a> 
+<a class="jxr_linenumber" name="L339" href="#L339">339</a>         @Override
+<a class="jxr_linenumber" name="L340" href="#L340">340</a>         <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">void</strong> onMethodEnter() {
+<a class="jxr_linenumber" name="L341" href="#L341">341</a>             localFieldArray = newLocal(fieldArrayType);
+<a class="jxr_linenumber" name="L342" href="#L342">342</a>             bitSet = newLocal(bitSetType);
+<a class="jxr_linenumber" name="L343" href="#L343">343</a>             fieldCounter = newLocal(Type.INT_TYPE);
+<a class="jxr_linenumber" name="L344" href="#L344">344</a> 
+<a class="jxr_linenumber" name="L345" href="#L345">345</a>             <em class="jxr_comment">// create localFieldArray</em>
+<a class="jxr_linenumber" name="L346" href="#L346">346</a>             push(fieldAccesses.size());
+<a class="jxr_linenumber" name="L347" href="#L347">347</a>             newArray(fieldArrayType.getElementType());
+<a class="jxr_linenumber" name="L348" href="#L348">348</a>             storeLocal(localFieldArray);
+<a class="jxr_linenumber" name="L349" href="#L349">349</a> 
+<a class="jxr_linenumber" name="L350" href="#L350">350</a>             <em class="jxr_comment">// create bitSet</em>
+<a class="jxr_linenumber" name="L351" href="#L351">351</a>             newInstance(bitSetType);
+<a class="jxr_linenumber" name="L352" href="#L352">352</a>             dup();
+<a class="jxr_linenumber" name="L353" href="#L353">353</a>             push(fieldAccesses.size());
+<a class="jxr_linenumber" name="L354" href="#L354">354</a>             invokeConstructor(bitSetType, Method.getMethod(<span class="jxr_string">"void &lt;init&gt;(int)"</span>));
+<a class="jxr_linenumber" name="L355" href="#L355">355</a>             storeLocal(bitSet);
+<a class="jxr_linenumber" name="L356" href="#L356">356</a> 
+<a class="jxr_linenumber" name="L357" href="#L357">357</a>             <em class="jxr_comment">// populate localFieldArray</em>
+<a class="jxr_linenumber" name="L358" href="#L358">358</a>             push(0);
+<a class="jxr_linenumber" name="L359" href="#L359">359</a>             storeLocal(fieldCounter);
+<a class="jxr_linenumber" name="L360" href="#L360">360</a>             <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">final</strong> FieldAccess access : fieldAccesses) {
+<a class="jxr_linenumber" name="L361" href="#L361">361</a>                 prehandle(access);
+<a class="jxr_linenumber" name="L362" href="#L362">362</a>                 iinc(fieldCounter, 1);
+<a class="jxr_linenumber" name="L363" href="#L363">363</a>             }
+<a class="jxr_linenumber" name="L364" href="#L364">364</a>             mark(begin);
+<a class="jxr_linenumber" name="L365" href="#L365">365</a>         }
+<a class="jxr_linenumber" name="L366" href="#L366">366</a> 
+<a class="jxr_linenumber" name="L367" href="#L367">367</a>         <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> prehandle(<strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/commons/weaver/privilizer/FieldAccess.html">FieldAccess</a> access) {
+<a class="jxr_linenumber" name="L368" href="#L368">368</a>             <em class="jxr_comment">// push owner.class literal</em>
+<a class="jxr_linenumber" name="L369" href="#L369">369</a>             visitLdcInsn(access.owner);
+<a class="jxr_linenumber" name="L370" href="#L370">370</a>             push(access.name);
+<a class="jxr_linenumber" name="L371" href="#L371">371</a>             <strong class="jxr_keyword">final</strong> Label next = <strong class="jxr_keyword">new</strong> Label();
+<a class="jxr_linenumber" name="L372" href="#L372">372</a>             invokeVirtual(classType, <strong class="jxr_keyword">new</strong> Method(<span class="jxr_string">"getDeclaredField"</span>, fieldType, <strong class="jxr_keyword">new</strong> Type[] { stringType }));
+<a class="jxr_linenumber" name="L373" href="#L373">373</a> 
+<a class="jxr_linenumber" name="L374" href="#L374">374</a>             dup();
+<a class="jxr_linenumber" name="L375" href="#L375">375</a>             <em class="jxr_comment">// store the field at localFieldArray[fieldCounter]:</em>
+<a class="jxr_linenumber" name="L376" href="#L376">376</a>             loadLocal(localFieldArray);
+<a class="jxr_linenumber" name="L377" href="#L377">377</a>             swap();
+<a class="jxr_linenumber" name="L378" href="#L378">378</a>             loadLocal(fieldCounter);
+<a class="jxr_linenumber" name="L379" href="#L379">379</a>             swap();
+<a class="jxr_linenumber" name="L380" href="#L380">380</a>             arrayStore(fieldArrayType.getElementType());
+<a class="jxr_linenumber" name="L381" href="#L381">381</a> 
+<a class="jxr_linenumber" name="L382" href="#L382">382</a>             dup();
+<a class="jxr_linenumber" name="L383" href="#L383">383</a>             invokeVirtual(fieldArrayType.getElementType(), Method.getMethod(<span class="jxr_string">"boolean isAccessible()"</span>));
+<a class="jxr_linenumber" name="L384" href="#L384">384</a> 
+<a class="jxr_linenumber" name="L385" href="#L385">385</a>             <strong class="jxr_keyword">final</strong> Label setAccessible = <strong class="jxr_keyword">new</strong> Label();
+<a class="jxr_linenumber" name="L386" href="#L386">386</a>             <em class="jxr_comment">// if false, setAccessible:</em>
+<a class="jxr_linenumber" name="L387" href="#L387">387</a>             ifZCmp(EQ, setAccessible);
+<a class="jxr_linenumber" name="L388" href="#L388">388</a> 
+<a class="jxr_linenumber" name="L389" href="#L389">389</a>             <em class="jxr_comment">// else pop field instance</em>
+<a class="jxr_linenumber" name="L390" href="#L390">390</a>             pop();
+<a class="jxr_linenumber" name="L391" href="#L391">391</a>             <em class="jxr_comment">// and record that he was already accessible:</em>
+<a class="jxr_linenumber" name="L392" href="#L392">392</a>             loadLocal(bitSet);
+<a class="jxr_linenumber" name="L393" href="#L393">393</a>             loadLocal(fieldCounter);
+<a class="jxr_linenumber" name="L394" href="#L394">394</a>             invokeVirtual(bitSetType, Method.getMethod(<span class="jxr_string">"void set(int)"</span>));
+<a class="jxr_linenumber" name="L395" href="#L395">395</a>             goTo(next);
+<a class="jxr_linenumber" name="L396" href="#L396">396</a> 
+<a class="jxr_linenumber" name="L397" href="#L397">397</a>             mark(setAccessible);
+<a class="jxr_linenumber" name="L398" href="#L398">398</a>             push(<strong class="jxr_keyword">true</strong>);
+<a class="jxr_linenumber" name="L399" href="#L399">399</a>             invokeVirtual(fieldArrayType.getElementType(), Method.getMethod(<span class="jxr_string">"void setAccessible(boolean)"</span>));
+<a class="jxr_linenumber" name="L400" href="#L400">400</a> 
+<a class="jxr_linenumber" name="L401" href="#L401">401</a>             mark(next);
+<a class="jxr_linenumber" name="L402" href="#L402">402</a>         }
+<a class="jxr_linenumber" name="L403" href="#L403">403</a> 
+<a class="jxr_linenumber" name="L404" href="#L404">404</a>         @Override
+<a class="jxr_linenumber" name="L405" href="#L405">405</a>         <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> visitFieldInsn(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> opcode, <strong class="jxr_keyword">final</strong> String owner, <strong class="jxr_keyword">final</strong> String name, <strong class="jxr_keyword">final</strong> String desc) {
+<a class="jxr_linenumber" name="L406" href="#L406">406</a>             <strong class="jxr_keyword">final</strong> Pair&lt;Type, String&gt; key = Pair.of(Type.getObjectType(owner), name);
+<a class="jxr_linenumber" name="L407" href="#L407">407</a>             <strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/commons/weaver/privilizer/FieldAccess.html">FieldAccess</a> fieldAccess = fieldAccessMap.get(key);
+<a class="jxr_linenumber" name="L408" href="#L408">408</a>             Validate.isTrue(fieldAccesses.contains(fieldAccess), <span class="jxr_string">"Cannot find field %s"</span>, key);
+<a class="jxr_linenumber" name="L409" href="#L409">409</a>             <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> fieldIndex = fieldAccesses.indexOf(fieldAccess);
+<a class="jxr_linenumber" name="L410" href="#L410">410</a>             visitInsn(NOP);
+<a class="jxr_linenumber" name="L411" href="#L411">411</a>             loadLocal(localFieldArray);
+<a class="jxr_linenumber" name="L412" href="#L412">412</a>             push(fieldIndex);
+<a class="jxr_linenumber" name="L413" href="#L413">413</a>             arrayLoad(fieldArrayType.getElementType());
+<a class="jxr_linenumber" name="L414" href="#L414">414</a>             checkCast(fieldType);
+<a class="jxr_linenumber" name="L415" href="#L415">415</a> 
+<a class="jxr_linenumber" name="L416" href="#L416">416</a>             <strong class="jxr_keyword">final</strong> Method access;
+<a class="jxr_linenumber" name="L417" href="#L417">417</a>             <strong class="jxr_keyword">if</strong> (opcode == PUTSTATIC) {
+<a class="jxr_linenumber" name="L418" href="#L418">418</a>                 <em class="jxr_comment">// value should have been at top of stack on entry; position the field under the value:</em>
+<a class="jxr_linenumber" name="L419" href="#L419">419</a>                 swap();
+<a class="jxr_linenumber" name="L420" href="#L420">420</a>                 <em class="jxr_comment">// add null object for static field deref and swap under value:</em>
+<a class="jxr_linenumber" name="L421" href="#L421">421</a>                 push((String) <strong class="jxr_keyword">null</strong>);
+<a class="jxr_linenumber" name="L422" href="#L422">422</a>                 swap();
+<a class="jxr_linenumber" name="L423" href="#L423">423</a>                 <strong class="jxr_keyword">if</strong> (fieldAccess.type.getSort() &lt; Type.ARRAY) {
+<a class="jxr_linenumber" name="L424" href="#L424">424</a>                     <em class="jxr_comment">// box value:</em>
+<a class="jxr_linenumber" name="L425" href="#L425">425</a>                     valueOf(fieldAccess.type);
+<a class="jxr_linenumber" name="L426" href="#L426">426</a>                 }
+<a class="jxr_linenumber" name="L427" href="#L427">427</a>                 access = Method.getMethod(<span class="jxr_string">"void set(Object, Object)"</span>);
+<a class="jxr_linenumber" name="L428" href="#L428">428</a>             } <strong class="jxr_keyword">else</strong> {
+<a class="jxr_linenumber" name="L429" href="#L429">429</a>                 access = Method.getMethod(<span class="jxr_string">"Object get(Object)"</span>);
+<a class="jxr_linenumber" name="L430" href="#L430">430</a>                 <em class="jxr_comment">// add null object for static field deref:</em>
+<a class="jxr_linenumber" name="L431" href="#L431">431</a>                 push((String) <strong class="jxr_keyword">null</strong>);
+<a class="jxr_linenumber" name="L432" href="#L432">432</a>             }
+<a class="jxr_linenumber" name="L433" href="#L433">433</a> 
+<a class="jxr_linenumber" name="L434" href="#L434">434</a>             invokeVirtual(fieldType, access);
+<a class="jxr_linenumber" name="L435" href="#L435">435</a> 
+<a class="jxr_linenumber" name="L436" href="#L436">436</a>             <strong class="jxr_keyword">if</strong> (opcode == GETSTATIC) {
+<a class="jxr_linenumber" name="L437" href="#L437">437</a>                 checkCast(privilizer().wrap(fieldAccess.type));
+<a class="jxr_linenumber" name="L438" href="#L438">438</a>                 <strong class="jxr_keyword">if</strong> (fieldAccess.type.getSort() &lt; Type.ARRAY) {
+<a class="jxr_linenumber" name="L439" href="#L439">439</a>                     unbox(fieldAccess.type);
+<a class="jxr_linenumber" name="L440" href="#L440">440</a>                 }
+<a class="jxr_linenumber" name="L441" href="#L441">441</a>             }
+<a class="jxr_linenumber" name="L442" href="#L442">442</a>         }
+<a class="jxr_linenumber" name="L443" href="#L443">443</a> 
+<a class="jxr_linenumber" name="L444" href="#L444">444</a>         @Override
+<a class="jxr_linenumber" name="L445" href="#L445">445</a>         <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> visitMaxs(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> maxStack, <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> maxLocals) {
+<a class="jxr_linenumber" name="L446" href="#L446">446</a>             <em class="jxr_comment">// put try-finally around the whole method</em>
+<a class="jxr_linenumber" name="L447" href="#L447">447</a>             <strong class="jxr_keyword">final</strong> Label fny = mark();
+<a class="jxr_linenumber" name="L448" href="#L448">448</a>             <em class="jxr_comment">// null exception type signifies finally block:</em>
+<a class="jxr_linenumber" name="L449" href="#L449">449</a>             <strong class="jxr_keyword">final</strong> Type exceptionType = <strong class="jxr_keyword">null</strong>;
+<a class="jxr_linenumber" name="L450" href="#L450">450</a>             catchException(begin, fny, exceptionType);
+<a class="jxr_linenumber" name="L451" href="#L451">451</a>             onFinally();
+<a class="jxr_linenumber" name="L452" href="#L452">452</a>             throwException();
+<a class="jxr_linenumber" name="L453" href="#L453">453</a>             <strong class="jxr_keyword">super</strong>.visitMaxs(maxStack, maxLocals);
+<a class="jxr_linenumber" name="L454" href="#L454">454</a>         }
+<a class="jxr_linenumber" name="L455" href="#L455">455</a> 
+<a class="jxr_linenumber" name="L456" href="#L456">456</a>         @Override
+<a class="jxr_linenumber" name="L457" href="#L457">457</a>         <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">void</strong> onMethodExit(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> opcode) {
+<a class="jxr_linenumber" name="L458" href="#L458">458</a>             <strong class="jxr_keyword">if</strong> (opcode != ATHROW) {
+<a class="jxr_linenumber" name="L459" href="#L459">459</a>                 onFinally();
+<a class="jxr_linenumber" name="L460" href="#L460">460</a>             }
+<a class="jxr_linenumber" name="L461" href="#L461">461</a>         }
+<a class="jxr_linenumber" name="L462" href="#L462">462</a> 
+<a class="jxr_linenumber" name="L463" href="#L463">463</a>         <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> onFinally() {
+<a class="jxr_linenumber" name="L464" href="#L464">464</a>             <em class="jxr_comment">// loop over fields and return any non-null element to being inaccessible:</em>
+<a class="jxr_linenumber" name="L465" href="#L465">465</a>             push(0);
+<a class="jxr_linenumber" name="L466" href="#L466">466</a>             storeLocal(fieldCounter);
+<a class="jxr_linenumber" name="L467" href="#L467">467</a> 
+<a class="jxr_linenumber" name="L468" href="#L468">468</a>             <strong class="jxr_keyword">final</strong> Label test = mark();
+<a class="jxr_linenumber" name="L469" href="#L469">469</a>             <strong class="jxr_keyword">final</strong> Label increment = <strong class="jxr_keyword">new</strong> Label();
+<a class="jxr_linenumber" name="L470" href="#L470">470</a>             <strong class="jxr_keyword">final</strong> Label endFinally = <strong class="jxr_keyword">new</strong> Label();
+<a class="jxr_linenumber" name="L471" href="#L471">471</a> 
+<a class="jxr_linenumber" name="L472" href="#L472">472</a>             loadLocal(fieldCounter);
+<a class="jxr_linenumber" name="L473" href="#L473">473</a>             push(fieldAccesses.size());
+<a class="jxr_linenumber" name="L474" href="#L474">474</a>             ifCmp(Type.INT_TYPE, GeneratorAdapter.GE, endFinally);
+<a class="jxr_linenumber" name="L475" href="#L475">475</a> 
+<a class="jxr_linenumber" name="L476" href="#L476">476</a>             loadLocal(bitSet);
+<a class="jxr_linenumber" name="L477" href="#L477">477</a>             loadLocal(fieldCounter);
+<a class="jxr_linenumber" name="L478" href="#L478">478</a>             invokeVirtual(bitSetType, Method.getMethod(<span class="jxr_string">"boolean get(int)"</span>));
+<a class="jxr_linenumber" name="L479" href="#L479">479</a> 
+<a class="jxr_linenumber" name="L480" href="#L480">480</a>             <em class="jxr_comment">// if true, increment:</em>
+<a class="jxr_linenumber" name="L481" href="#L481">481</a>             ifZCmp(NE, increment);
+<a class="jxr_linenumber" name="L482" href="#L482">482</a> 
+<a class="jxr_linenumber" name="L483" href="#L483">483</a>             loadLocal(localFieldArray);
+<a class="jxr_linenumber" name="L484" href="#L484">484</a>             loadLocal(fieldCounter);
+<a class="jxr_linenumber" name="L485" href="#L485">485</a>             arrayLoad(fieldArrayType.getElementType());
+<a class="jxr_linenumber" name="L486" href="#L486">486</a>             push(false);
+<a class="jxr_linenumber" name="L487" href="#L487">487</a>             invokeVirtual(fieldArrayType.getElementType(), Method.getMethod(<span class="jxr_string">"void setAccessible(boolean)"</span>));
+<a class="jxr_linenumber" name="L488" href="#L488">488</a> 
+<a class="jxr_linenumber" name="L489" href="#L489">489</a>             mark(increment);
+<a class="jxr_linenumber" name="L490" href="#L490">490</a>             iinc(fieldCounter, 1);
+<a class="jxr_linenumber" name="L491" href="#L491">491</a>             goTo(test);
+<a class="jxr_linenumber" name="L492" href="#L492">492</a>             mark(endFinally);
+<a class="jxr_linenumber" name="L493" href="#L493">493</a>         }
+<a class="jxr_linenumber" name="L494" href="#L494">494</a>     }
+<a class="jxr_linenumber" name="L495" href="#L495">495</a> }
 </pre>
 <hr/>
 <div id="footer">Copyright &#169; 2014 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div>

Modified: websites/production/commons/content/proper/commons-weaver/commons-weaver-modules-parent/commons-weaver-privilizer-parent/commons-weaver-privilizer/xref/org/apache/commons/weaver/privilizer/InlineNestedPrivilegedCalls.html
==============================================================================
--- websites/production/commons/content/proper/commons-weaver/commons-weaver-modules-parent/commons-weaver-privilizer-parent/commons-weaver-privilizer/xref/org/apache/commons/weaver/privilizer/InlineNestedPrivilegedCalls.html (original)
+++ websites/production/commons/content/proper/commons-weaver/commons-weaver-modules-parent/commons-weaver-privilizer-parent/commons-weaver-privilizer/xref/org/apache/commons/weaver/privilizer/InlineNestedPrivilegedCalls.html Thu May 29 22:54:45 2014
@@ -58,7 +58,7 @@
 <a class="jxr_linenumber" name="L50" href="#L50">50</a>  <em class="jxr_javadoccomment">     */</em>
 <a class="jxr_linenumber" name="L51" href="#L51">51</a>      <a href="../../../../../org/apache/commons/weaver/privilizer/InlineNestedPrivilegedCalls.html">InlineNestedPrivilegedCalls</a>(<strong class="jxr_keyword">final</strong> <a href="../../../../../org/apache/commons/weaver/privilizer/Privilizer.html">Privilizer</a> privilizer, <strong class="jxr_keyword">final</strong> Map&lt;Method, String&gt; privilegedMethods,
 <a class="jxr_linenumber" name="L52" href="#L52">52</a>          <strong class="jxr_keyword">final</strong> ClassVisitor next) {
-<a class="jxr_linenumber" name="L53" href="#L53">53</a>          <strong class="jxr_keyword">super</strong>(Opcodes.ASM4);
+<a class="jxr_linenumber" name="L53" href="#L53">53</a>          <strong class="jxr_keyword">super</strong>(Opcodes.ASM5);
 <a class="jxr_linenumber" name="L54" href="#L54">54</a>          <strong class="jxr_keyword">this</strong>.privilizer = privilizer;
 <a class="jxr_linenumber" name="L55" href="#L55">55</a>          <strong class="jxr_keyword">this</strong>.privilegedMethods = privilegedMethods;
 <a class="jxr_linenumber" name="L56" href="#L56">56</a>          <strong class="jxr_keyword">this</strong>.next = next;
@@ -68,7 +68,7 @@
 <a class="jxr_linenumber" name="L60" href="#L60">60</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> visitEnd() {
 <a class="jxr_linenumber" name="L61" href="#L61">61</a>          <strong class="jxr_keyword">super</strong>.visitEnd();
 <a class="jxr_linenumber" name="L62" href="#L62">62</a>  
-<a class="jxr_linenumber" name="L63" href="#L63">63</a>          accept(<strong class="jxr_keyword">new</strong> ClassVisitor(Opcodes.ASM4, next) {
+<a class="jxr_linenumber" name="L63" href="#L63">63</a>          accept(<strong class="jxr_keyword">new</strong> ClassVisitor(Opcodes.ASM5, next) {
 <a class="jxr_linenumber" name="L64" href="#L64">64</a>              @Override
 <a class="jxr_linenumber" name="L65" href="#L65">65</a>              <strong class="jxr_keyword">public</strong> MethodVisitor visitMethod(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> access, <strong class="jxr_keyword">final</strong> String name, <strong class="jxr_keyword">final</strong> String desc,
 <a class="jxr_linenumber" name="L66" href="#L66">66</a>                  <strong class="jxr_keyword">final</strong> String signature, <strong class="jxr_keyword">final</strong> String[] exceptions) {
@@ -77,10 +77,10 @@
 <a class="jxr_linenumber" name="L69" href="#L69">69</a>                  <strong class="jxr_keyword">if</strong> (!privilegedMethods.containsValue(name)) {
 <a class="jxr_linenumber" name="L70" href="#L70">70</a>                      <strong class="jxr_keyword">return</strong> orig;
 <a class="jxr_linenumber" name="L71" href="#L71">71</a>                  }
-<a class="jxr_linenumber" name="L72" href="#L72">72</a>                  <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">new</strong> MethodVisitor(Opcodes.ASM4, orig) {
+<a class="jxr_linenumber" name="L72" href="#L72">72</a>                  <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">new</strong> MethodVisitor(Opcodes.ASM5, orig) {
 <a class="jxr_linenumber" name="L73" href="#L73">73</a>                      @Override
 <a class="jxr_linenumber" name="L74" href="#L74">74</a>                      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> visitMethodInsn(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> opcode, <strong class="jxr_keyword">final</strong> String owner, <strong class="jxr_keyword">final</strong> String name,
-<a class="jxr_linenumber" name="L75" href="#L75">75</a>                          <strong class="jxr_keyword">final</strong> String desc) {
+<a class="jxr_linenumber" name="L75" href="#L75">75</a>                          <strong class="jxr_keyword">final</strong> String desc, <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">boolean</strong> itf) {
 <a class="jxr_linenumber" name="L76" href="#L76">76</a>                          String useName = name;
 <a class="jxr_linenumber" name="L77" href="#L77">77</a>                          <strong class="jxr_keyword">if</strong> (owner.equals(InlineNestedPrivilegedCalls.<strong class="jxr_keyword">this</strong>.name)) {
 <a class="jxr_linenumber" name="L78" href="#L78">78</a>                              <strong class="jxr_keyword">final</strong> Method methd = <strong class="jxr_keyword">new</strong> Method(name, desc);
@@ -90,7 +90,7 @@
 <a class="jxr_linenumber" name="L82" href="#L82">82</a>                                      useName);
 <a class="jxr_linenumber" name="L83" href="#L83">83</a>                              }
 <a class="jxr_linenumber" name="L84" href="#L84">84</a>                          }
-<a class="jxr_linenumber" name="L85" href="#L85">85</a>                          <strong class="jxr_keyword">super</strong>.visitMethodInsn(opcode, owner, useName, desc);
+<a class="jxr_linenumber" name="L85" href="#L85">85</a>                          <strong class="jxr_keyword">super</strong>.visitMethodInsn(opcode, owner, useName, desc, itf);
 <a class="jxr_linenumber" name="L86" href="#L86">86</a>                      }
 <a class="jxr_linenumber" name="L87" href="#L87">87</a>                  };
 <a class="jxr_linenumber" name="L88" href="#L88">88</a>              }



Mime
View raw message