catch NoClassDefFoundError on 1.4 jre
This commit is contained in:
		
							parent
							
								
									29b9d5ada1
								
							
						
					
					
						commit
						dd471219c4
					
				@ -34,6 +34,15 @@ public class TestMx extends SigarTestCase {
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public void testRegister() throws Exception {
 | 
			
		||||
        try {
 | 
			
		||||
            _testRegister();
 | 
			
		||||
        } catch (NoClassDefFoundError e) {
 | 
			
		||||
            //1.4 jre
 | 
			
		||||
            traceln(e + ", skipping");
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    private void _testRegister() throws Exception {
 | 
			
		||||
        MBeanServer server;
 | 
			
		||||
        try {
 | 
			
		||||
            server = Mx.getMBeanServer();
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user