On 12/6/2010 9:43 AM, Alan Bateman wrote:
Daniel D. Daugherty wrote:
:
> The returned environment may have a different version than the
> requested version but the returned environment must be compatible.
If a client asks for version 1.0 or version 1.1, then it is okay
to return version 1.2 as long as the common parts between those
versions are compatible. If a client running on JDK5 or JDK6 is
smart enough to ask for JVM/TI version 1.2, then it can be allowed
to have it.
It may be safer for jdk6 to continue to return a 1.1 environment, just
in case there are agents that would be surprised if GetVersionNumber
returned something else.
Then the agent would be wrong. :-)
If the agent is smart enough to ask the new version, then it should
be allowed to use that new version. By restricting JDK6 to version 1.1,
you would be precluding a tool vendor from having a single binary that
could work on JDK5, JDK6 and JDK7 where HSX is in place.
Dan