【发布时间】:2019-03-02 07:56:49
【问题描述】:
我有一个简单的 JUnit 测试
@Test
public void validateMoney() throws IOException {
ObjectMapper mapper = new ObjectMapper();
mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
FileInputStream fileStream = new FileInputStream("src/test/resources/IndividualMoney.json");
Money money = mapper.readValue(fileStream, Money.class);
List<Person> people = personService.execute(money);
每当我在 Linux 中的 java Oxygen 上运行调试并尝试访问人员列表时,我都会在检索值时得到 com.sun.jdi.objectcollectedexception。我读过类似的问题,其中一个解决方案是取消选中 window/preferences/debug Show method result after a step operation 我取消选中它,但结果是一样的
【问题讨论】: