In order to not break the must-requirement to not use any dynamically generated classes I've generated my stub class using rmic.
Now I wanted to test if this stub class is really used at runtime, but did not found any option to disable the automatic generation of the dynamic proxy stub class.
So, how did you test that your generated stub classes are really used at runtime?
Secondly generating stubs is not needed anymore and many people passed without generating them, my good friend Roberto Perillo was one of the first ones to violate the must requirements and still pass the certification. If you use the search engine of this forum you'll find many threads discussing this topic (e.g. here). But if you still want to generate them, then you can read here how you can see if the generated stubs are actually used.
Howdy, Paolo. Welcome to JavaRanch and also, best wishes for 2012!
Roel De Nijs wrote:Secondly generating stubs is not needed anymore and many people passed without generating them, my good friend Roberto Perillo was one of the first ones to violate the must requirements and still pass the certification.
Thanks for your quick reply, I tried to find any threads about this topic but failed, thanks for the links!
Since this requirement is still a must according to my assignment I don't see any advantages to not generate the stubs... even if it's just one line to add in the build script.
Assignments simply are not updated accordingly to the newer JDK versions. I also didn't want to take the risk, so generated them (and mentioned it in choices.txt). But that's more than 2 years ago. In the mean time so many people passed without generating them (also having that must requirement in their assignment) that it's not needed anymore (just document this decision). But of course you're still free to do so.