/*
 * Copyright 2015-2016 the original author or authors.
 *
 * All rights reserved. This program and the accompanying materials are
 * made available under the terms of the Eclipse Public License v1.0 which
 * accompanies this distribution and is available at
 *
 * http://www.eclipse.org/legal/epl-v10.html
 */

package org.junit.jupiter.migrationsupport.rules.member;

import static org.junit.platform.commons.meta.API.Usage.Internal;

import java.lang.reflect.Field;
import java.util.logging.Logger;

import org.junit.platform.commons.meta.API;
import org.junit.rules.TestRule;

@API(Internal)
public class RuleAnnotatedField extends AbstractRuleAnnotatedMember {

	private static final Logger LOG = Logger.getLogger(RuleAnnotatedField.class.getName());

	public RuleAnnotatedField(Object testInstance, Field testRuleField) {
		try {
			testRuleField.setAccessible(true);
			this.testRuleInstance = (TestRule) testRuleField.get(testInstance);
		}
		catch (IllegalAccessException exception) {
			LOG.warning(exception.getMessage());
		}
	}

}

@@ -542,16 +542,71 @@
 ta.API;%0A
+import org.junit.platform.commons.util.ExceptionUtils;%0A
 import o
@@ -1051,42 +1051,64 @@
 %0A%09%09%09
-LOG.warning(exception.getMessage()
+throw ExceptionUtils.throwAsUncheckedException(exception
 );%0A%09

Throw IllegalAccessException like in RuleAnnotatedMethod