mx4j/src/test/test/javax/management/support MBeanThrowingExceptions.java,NONE,1.1 MBeanThrowingExceptionsMBean.java,NONE,1.1

Simone Bordet <[email protected]> Sun, 13 Feb 2005 18:05:55 +0000
Newsgroups gmane.comp.java.mx4j.cvs
Message-ID <[email protected]>
Update of /cvsroot/mx4j/mx4j/src/test/test/javax/management/support
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32671/src/test/test/javax/management/support

Added Files:
	MBeanThrowingExceptions.java MBeanThrowingExceptionsMBean.java 
Log Message:
Fix for #1115165: ReflectionExceptions are not wrapped

--- NEW FILE: MBeanThrowingExceptions.java ---
/*
 * Copyright (C) The MX4J Contributors.
 * All rights reserved.
 *
 * This software is distributed under the terms of the MX4J License version 1.0.
 * See the terms of the MX4J License in the documentation provided with this software.
 */

package test.javax.management.support;

import javax.management.ReflectionException;

/**
 * @version $Revision: 1.1 $
 */
public class MBeanThrowingExceptions implements MBeanThrowingExceptionsMBean
{
   public void throwReflectionException() throws ReflectionException
   {
      throw new ReflectionException(null);
   }
}

--- NEW FILE: MBeanThrowingExceptionsMBean.java ---
/*
 * Copyright (C) The MX4J Contributors.
 * All rights reserved.
 *
 * This software is distributed under the terms of the MX4J License version 1.0.
 * See the terms of the MX4J License in the documentation provided with this software.
 */

package test.javax.management.support;

import javax.management.ReflectionException;

/**
 * @version $Revision: 1.1 $
 */
public interface MBeanThrowingExceptionsMBean
{
   public void throwReflectionException() throws ReflectionException;
}



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click