In the Application Reference for v4.0.5, Chapter 1, 
http://docs.jboss.org/jbossas/guides/j2eeguide/r2/en/html/ch2.chapter.html#d0e577:

Example 1.5 contains four class definitions. The first one, class <C,L1>, seems 
to have an error. First, on line 3:

anonymous wrote : <Spoofed,L1>L1 x = <Delegated, L2>L2
 
should be:

anonymous wrote : <Spoofed,L1>L1 x = <Delegated, L2>L2.g()

The text talks about the class <Spoofed,L2> returned by Delegated.g() on this 
line, but the method call is missing in the example.

The second class defined, <Delegated,L2>, seems to have a subtler, but 
important, error. On line 2:

anonymous wrote : static <Spoofed,L2>L3 g() {...}

should be:

anonymous wrote : static <Spoofed,L2>L2 g() {...}

If I'm understanding the detailed explanation, the point of this example is 
that on line 3 of class <C,L1>, the VM realizes that <Delegated,L2> is going to 
return a SpoofedL2, that is, a Spoofed initiated by L2 because L2 is the class 
loader that defined Delegated. True?



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4121381#4121381

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4121381
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to