DisposableBeanAdapter ignores bridge method conflicts
Issue: SPR-13922
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2015 the original author or authors.
|
||||
* Copyright 2002-2016 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -2890,7 +2890,13 @@ public class DefaultListableBeanFactoryTests {
|
||||
}
|
||||
|
||||
|
||||
public static class BeanWithDestroyMethod {
|
||||
public static abstract class BaseClassWithDestroyMethod {
|
||||
|
||||
public abstract BaseClassWithDestroyMethod close();
|
||||
}
|
||||
|
||||
|
||||
public static class BeanWithDestroyMethod extends BaseClassWithDestroyMethod {
|
||||
|
||||
private static int closeCount = 0;
|
||||
|
||||
@@ -2900,8 +2906,10 @@ public class DefaultListableBeanFactoryTests {
|
||||
this.inner = inner;
|
||||
}
|
||||
|
||||
public void close() {
|
||||
@Override
|
||||
public BeanWithDestroyMethod close() {
|
||||
closeCount++;
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user