You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@polygene.apache.org by "Niclas Hedhman (JIRA)" <ji...@apache.org> on 2018/04/19 03:19:00 UTC

[jira] [Comment Edited] (POLYGENE-122) Use parameter names to build better error messages on null barrier faults

    [ https://issues.apache.org/jira/browse/POLYGENE-122?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16443515#comment-16443515 ] 

Niclas Hedhman edited comment on POLYGENE-122 at 4/19/18 3:18 AM:
------------------------------------------------------------------

Need to figure out how many cases there are, and whether it is all handled by the same piece of code.
 # Construction of a Composite - *{color:#14892c}PARAMETER REPORTED{color}*
 # Setting Property to null on Transient - *{color:#d04437}NOT CHECKED{color}*
 # Passing null as method argument - {color:#14892c}*{color:#d04437}PARAMETER REPORTED{color}*{color}
 # ??


was (Author: niclas):
Need to figure out how many cases there are, and whether it is all handled by the same piece of code.
 # Construction of a Composite - *{color:#14892c}PARAMETER REPORTED{color}*
 # Setting Property to null on Transient - *{color:#d04437}NOT CHECKED{color}*
 # Passing null as method argument - *{color:#d04437}{color:#14892c}PARAMETER REPORTED{color}{color}*
 # ??

> Use parameter names to build better error messages on null barrier faults
> -------------------------------------------------------------------------
>
>                 Key: POLYGENE-122
>                 URL: https://issues.apache.org/jira/browse/POLYGENE-122
>             Project: Polygene
>          Issue Type: Improvement
>            Reporter: Paul Merlin
>            Priority: Major
>             Fix For: 3.1.0
>
>
> Parameters to composite's methods must be non-null by default. This can be relaxed using the @Optional annotation.
> This issue is about producing more meaningful error messages, ie. including the parameter name, when a null parameter is given to a composite's method.
> See https://docs.oracle.com/javase/tutorial/reflect/member/methodparameterreflection.html for details on parameter names reflection.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)