Project:
| View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||||||
| ID | ||||||||||||
| 0045138 | ||||||||||||
| Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||||||
| feature request | [Openbravo ERP] A. Platform | minor | N/A | 2020-09-25 08:14 | 2022-02-01 08:07 | |||||||
| Reporter | vmromanos | View Status | public | |||||||||
| Assigned To | Triage Platform Base | |||||||||||
| Priority | normal | Resolution | open | Fixed in Version | ||||||||
| Status | new | Fix in branch | Fixed in SCM revision | |||||||||
| Projection | none | ETA | none | Target Version | ||||||||
| OS | Any | Database | Any | Java version | ||||||||
| OS Version | Database version | Ant version | ||||||||||
| Product Version | SCM revision | |||||||||||
| Merge Request Status | ||||||||||||
| Review Assigned To | ||||||||||||
| OBNetwork customer | No | |||||||||||
| Web browser | ||||||||||||
| Modules | Core | |||||||||||
| Support ticket | ||||||||||||
| Regression level | ||||||||||||
| Regression date | ||||||||||||
| Regression introduced in release | ||||||||||||
| Regression introduced by commit | ||||||||||||
| Triggers an Emergency Pack | No | |||||||||||
| Summary | 0045138: Add support for @NonNull and @Nullable annotations | |||||||||||
| Description | See 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 Reproduce | Write 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. | |||||||||||
| Tags | No tags attached. | |||||||||||
| Attached Files | ||||||||||||
Relationships [ Relation Graph ]
[ Dependency Graph ]
|
|
Notes |
|
|
(0123364) vmromanos (viewer) 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 | OBNetwork customer | => No |
| 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 |