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 239273 - @PostConstruct method error hint is shown even if it's throwing RuntimeException
Summary: @PostConstruct method error hint is shown even if it's throwing RuntimeException
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: EJB (show other bugs)
Version: 8.0
Hardware: All All
: P4 normal (vote)
Assignee: Martin Fousek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-09 14:36 UTC by Martin Janicek
Modified: 2013-12-10 12:45 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Reproducible project (4.07 KB, application/zip)
2013-12-09 14:36 UTC, Martin Janicek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Janicek 2013-12-09 14:36:28 UTC
Created attachment 142973 [details]
Reproducible project

While evaluating issue 239267, I found that the error hint saying "@PostConstruct annotated method must not throw a checked exception." is shown even in case when the method declares RuntimeException in it's declaration.

I guess it's not really important --> setting to P4 priority

And attaching project for reproduction.
Comment 1 Martin Fousek 2013-12-10 12:45:28 UTC
Good point, thanks. Fixed together with the issue #239267 in web-main #3434fb316220.