Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0045138
TypeCategorySeverityReproducibilityDate SubmittedLast Update
feature request[Openbravo ERP] A. PlatformminorN/A2020-09-25 08:142022-02-01 08:07
ReportervmromanosView Statuspublic 
Assigned ToTriage Platform Base 
PrioritynormalResolutionopenFixed in Version
StatusnewFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0045138: Add support for @NonNull and @Nullable annotations

DescriptionSee https://help.eclipse.org/2020-09/index.jsp?topic=%2Forg.eclipse.jdt.doc.user%2Ftasks%2Ftask-using_null_annotations.htm [^]

Ideally we should use the Mandatory flag in AD_Column to automatically set as @NonNull/@Nullable the return object in the getters() and the parameter in the setters() of any class generated from the AD_Table definition.

Other manually generated classes could use both annotations too.

The usage of these annotations could help to detect NullPointerException easily at compilation time.
Steps To ReproduceWrite a code that uses a method where null might be returned. Example:

invoice.getDescription().concat("Expected NPE if description is null");

It would be nice that the eclipse compiler showing a warning to the developer.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0123364)
vmromanos (manager)
2020-09-25 08:23

See java 8 annotations as another option to implement the same thing https://help.eclipse.org/2020-09/index.jsp?topic=%2Forg.eclipse.jdt.doc.user%2Ftasks%2Ftask-using_null_type_annotations.htm [^]

- Issue History
Date Modified Username Field Change
2020-09-25 08:14 vmromanos New Issue
2020-09-25 08:14 vmromanos Assigned To => platform
2020-09-25 08:14 vmromanos Modules => Core
2020-09-25 08:14 vmromanos Triggers an Emergency Pack => No
2020-09-25 08:23 vmromanos Note Added: 0123364
2022-02-01 08:07 alostale Assigned To platform => Triage Platform Base


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker