Comment #16 on issue 343 by ellis.m.a: BytecodeGen uses system classloader  
when applying AOP to system types
http://code.google.com/p/google-guice/issues/detail?id=343

For interest, here's how I ran into it...

In Guice 1.0, I had a module that did:
   bind(Date.class);
and some code that did:
   @Inject
   Provider<Date> dateProvider;

Hence, the code can do dateProvider.get() (instead of new Date()) to get  
the current
time.

Meanwhile, the tests inject a Provider<Date> that returns times from a  
Queue.

I haven't looked at the code for a while, but I think it was testing  
periodic polling
(has the card transaction been processed yet? or have we timed out?), and  
(elsewhere)
logging start/end times for a client session.


--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"google-guice-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-guice-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to