Jaroslav Tulach created NETBEANS-621:
----------------------------------------

             Summary: Missing vararg cast in generated code
                 Key: NETBEANS-621
                 URL: https://issues.apache.org/jira/browse/NETBEANS-621
             Project: NetBeans
          Issue Type: Bug
          Components: platform - HTML4J
    Affects Versions: 8.2
            Reporter: Jaroslav Tulach
            Assignee: Jaroslav Tulach


Code that is using @Model as

        @ModelOperation
        void read(Square square, SquareModel[] arr) {
            arr[0] = this;
        }

and later called

                        SquareModel[] arr = { null };
                        sq.read(arr);

may yield a NPE thanks to wrong generated code.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to