Greetings Guice users,

    Many people are starting to use Java7 in production applications, and 
some underlying changes in the Java7 VM may change behaviour in Guice, 
particularly relating to setter/method injection.  While there are no 
guarantees of method order returned Class's methods in the JVM spec, Java 
virtual machines, particularly HotSpot, have historically returned Method 
objects in a deterministic way.  Java7 changes that.

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7023180

    As of Java 7, because Methods WILL be returned in inconsistent order, 
this means that @Inject annotated methods will not maintain the same order 
of injection, even from execution to execution.  Now, naturally, your code 
is good and right and proper and wasn't relying on this un-specified 
behaviour in the JVM... but just in case it wasn't, we thought it wise to 
warn Guice users of this implicit behaviour change when running in a Java7 
runtime. 

Christian
[email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"google-guice" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-guice/-/eINfpXHvh6IJ.
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?hl=en.

Reply via email to