You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public class BeanA {
public void test() {
Map map = new HashMap();
new Thread(() -> System.out.print(map));
}
}
invoke BeanContainer.addBean(BeanAObjcet).
i found because it has a lambda method caused, so i modify class "Methods#inspectMethods()", and add "method.isSynthetic()" check.
The text was updated successfully, but these errors were encountered:
uyong
changed the title
petite problem: when registerBean will throw MalformedParametersException
petite problem: when addBean will throw MalformedParametersException
Sep 1, 2020
uyong
changed the title
petite problem: when addBean will throw MalformedParametersException
petite problem: when invoke addBean will throw MalformedParametersException
Sep 1, 2020
class SyntheticTest {
public static class BeanA {
public void test() {
final Map map = new HashMap();
new Thread(() -> System.out.print(map));
}
}
@Test
void synthTest() {
final PetiteContainer pc = new PetiteContainer();
pc.addBean("foo", new BeanA());
pc.getBean("foo");
}
}
class SyntheticTest {
public static class BeanA {
public void test() {
final Map map = new HashMap();
new Thread(() -> System.out.print(map));
}
}
@Test
void synthTest() {
final PetiteContainer pc = new PetiteContainer();
pc.addBean("foo", new BeanA());
pc.getBean("foo");
}
}
hello, when i use petite ioc, occur error: MalformedParametersException: Invalid parameter name "".
method invoke trace is:
use under code can easy recurrent:
invoke BeanContainer.addBean(BeanAObjcet).
i found because it has a lambda method caused, so i modify class "Methods#inspectMethods()", and add "method.isSynthetic()" check.
The text was updated successfully, but these errors were encountered: