[
https://issues.apache.org/jira/browse/AMQ-4027?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen updated AMQ-4027:
-----------------------------
Fix Version/s: 5.7.0
Is there no ending dot in Oracle? I wonder if it's not better to do a
startsWith test instead?
And test for starting with "Oracle". ?
> Add support for java 7 in AbstractJmxCommand
> --------------------------------------------
>
> Key: AMQ-4027
> URL: https://issues.apache.org/jira/browse/AMQ-4027
> Project: ActiveMQ
> Issue Type: Bug
> Components: JMX
> Affects Versions: 5.6.0
> Reporter: Didier Gutacker
> Priority: Minor
> Fix For: 5.7.0
>
> Original Estimate: 0.25h
> Remaining Estimate: 0.25h
>
> In the class org.apache.activemq.console.command.AbstractJmxCommand the
> method isSunJVM() checks wether the JVM is from Sun or not. This is done by
> comparing the system property "vendor" with the hardcoded string "Sun
> Microsystems Inc.". This prevents using the PID for connecting to the JVM via
> JMX locally when using java 7 because the vendor string is "Oracle
> Corporation".
> A possible bugfix is to enhance the method like this:
> public static boolean isSunJVM() {
> return (getJVM().equals("Sun Microsystems Inc.") ||
> getJVM().equals("Oracle Corporation"));
> }
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira