This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 267892 - Некорректное сообщение об ошибке
Summary: Некорректное сообщение об ошибке
Status: NEW
Alias: None
Product: ide
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: issues@ide
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-06 07:31 UTC by ExIngus
Modified: 2016-09-06 07:31 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ExIngus 2016-09-06 07:31:25 UTC
Product Version = NetBeans IDE 8.1 (Build 201510222201)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.8.0_102
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.102-b14

Воспроизводимость: Происходит всегда

Некорректное сообщение об ошибке,в коде
private void test(Stream<Optional<String>> stream){
stream.map(opt->opt.orElseThrow(RuntimeException::new));
}

unreported exception X; must be caught or declared to be thrown
  where X,T are type-variables:
    X extends Throwable declared in method <X>orElseThrow(Supplier<? extends X>)
    T extends Object declared in class Optiona