Цитата:
Сообщение от SouthBridge
А странно. Мне казалось это устранили.
Попробовал набросать простой тест с remove/put под u25 - всё ок.
Влепил на ВМ самую первую версию Java 8 и тоже никаких признаков отклонения от нормы.
Обида. Наверное я упустил какую-то тонкость
Johnson, один такой метод есть в классе Olympiad, метод updateNobleStats, который в принципе то и не нужен.
|
Дык у меня u11, о чем я и написал. Возможно в версиях выше исправили, по крайней мере ченджлоги я еще не читал и скорее всего читать буду не скоро
Добавлено через 18 минут
Посмотрел так я текущие баги и понял, что можно в принципе и не обновляться
Свернуть ↑
An incorrect exception table is generated for code that has multiple catch statements inside a lambda. The following example shows the type of code that causes this behavior:
Код:
class LambdaWithMultiCatch {
public static void main(String[] args) {
Runnable r = () -> {
try {
throw new IOException();
} catch(IOException | IllegalArgumentException e) {
System.out.println("This code will generate a wrong exception table");
}
};
r.run();
}
}
The generated exception table for method main() contains the following information:
Код:
Exception table:
from to target type
0 8 8 Class java/lang/Exception <--- neither IOException nor
<--- IllegalArgumentException appears
Avoid using multiple catch statements inside lambda bodies until this issue is fixed.
Свернуть ↑Развернуть ↓
Вот вам и dynamicinvoke...