You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Rony G. Flatscher (JIRA)" <ji...@apache.org> on 2016/12/30 11:50:58 UTC

[jira] [Commented] (BSF-44) Un-thrown exception

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

Rony G. Flatscher commented on BSF-44:
--------------------------------------

Thank you for your observation. However, looking at the code and its remarks it becomes clear that this was intentionally coded as is. If the netrexx package was not available the statement will cause an exception while creating an instance of the NetRexx BSF engine, otherwise creating an instance of the NetRexx engine would appear to have worked, causing an exception later, when the first script gets executed.

If you are (considering, interested in) employing NetRexx scripts you may want to consult the NetRexx community which is in the process of moving to Sourceforge at: <https://sourceforge.net/projects/netrexx/?source=directory>.


> Un-thrown exception
> -------------------
>
>                 Key: BSF-44
>                 URL: https://issues.apache.org/jira/browse/BSF-44
>             Project: Commons BSF
>          Issue Type: Bug
>            Reporter: Jaechang Nam
>            Assignee: Rony G. Flatscher
>            Priority: Trivial
>
> There is an un-thrown exception (BadArgumentException) in src/main/java/org/apache/bsf/engines/netrexx/NetRexxEngine.java (found from the current snapshot, f8eeaf2f8dd69e49b094b16b5c4d660c40f6be74). I have no idea if it is intended to do so. But thought it could be worth to report in case.
> {code}
> 128     public NetRexxEngine ()
> 129     {
> 130                     // handle logger
> 131                 logger = BSF_LogFactory.getLog(this.getClass().getName());
> 132         /*
> 133           The following line is intended to cause the constructor to
> 134           throw a NoClassDefFoundError if the NetRexxC.zip dependency
> 135           is not resolved.
> 136 
> 137           If this line was not here, the problem would not surface until
> 138           the actual processing of a script. We want to know all is well
> 139           at the time the engine is instantiated, not when we attempt to
> 140           process a script.
> 141           */
> 142 
> 143         new netrexx.lang.BadArgumentException();
> 144     }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)