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 251974 - @NonNull warning not inherited
Summary: @NonNull warning not inherited
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 8.0.2
Hardware: All All
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on: 249320
Blocks:
  Show dependency tree
 
Reported: 2015-04-21 17:29 UTC by SirIntellegence
Modified: 2015-11-18 13:57 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Sample Code (275 bytes, text/plain)
2015-04-21 17:30 UTC, SirIntellegence
Details

Note You need to log in before you can comment on or make changes to this bug.
Description SirIntellegence 2015-04-21 17:29:53 UTC
Given the attached code in a NetBeans module, the editor does not show a warning in NonNullBug$Impl.foo(). I assume there may be similar issues with NullAllowed, CheckForNull, and others like it.
Comment 1 SirIntellegence 2015-04-21 17:30:32 UTC
Created attachment 153291 [details]
Sample Code
Comment 2 SirIntellegence 2015-04-21 17:57:01 UTC
It appears that parameters do not inherit those annotations either.
Comment 3 Svata Dedic 2015-06-02 13:47:28 UTC
Linking to umbrella issue
Comment 4 Svata Dedic 2015-11-18 13:57:53 UTC
The experimental impl computes the nullable state including inherited annotations.