mirror of https://github.com/apache/activemq.git
AMQ-4027: Added support for Java7 in activemq-console. Thanks to Dider Gutacker for the patch.
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1382258 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
5b4fe6e05f
commit
f4c54db2a8
|
@ -64,7 +64,8 @@ public abstract class AbstractJmxCommand extends AbstractCommand {
|
|||
}
|
||||
|
||||
public static boolean isSunJVM() {
|
||||
return getJVM().equals("Sun Microsystems Inc.");
|
||||
// need to check for Oracle as that is the name for Java7 onwards.
|
||||
return getJVM().equals("Sun Microsystems Inc.") || getJVM().startsWith("Oracle");
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue