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

Gary Gregory commented on NET-672:
----------------------------------

This is a source compatibility issue, not binary compatibility which is our 
goal. Please adapt your source.

> Commons-net updating incompatible issue: unreported exception IOException
> -------------------------------------------------------------------------
>
>                 Key: NET-672
>                 URL: https://issues.apache.org/jira/browse/NET-672
>             Project: Commons Net
>          Issue Type: Bug
>         Environment:  
> {code:java}
> {code}
>  
>  
>            Reporter: xia0c
>            Priority: Major
>
> Hi,
> The following code snippets throw an incompatible issue when I try to rolling 
> update Commons-net from 2.0 to 3.6.
> {code:java}
> @Test
> public void test(){
>         TelnetClient tc1 = new TelnetClient();
>         TerminalTypeOptionHandler ttopt = new 
> TerminalTypeOptionHandler("VT100", false, false, true, false);
>         EchoOptionHandler echoopt = new EchoOptionHandler(true, false, true, 
> false);
>         SuppressGAOptionHandler gaopt = new SuppressGAOptionHandler(true, 
> true, true, true);
>         try {
>             tc1.addOptionHandler(ttopt);
>             tc1.addOptionHandler(echoopt);
>             tc1.addOptionHandler(gaopt);
>         } catch (InvalidTelnetOptionException e) {
>             System.err.println("Error registering option handlers: " + 
> e.getMessage());
>         }
> }
> {code}
> It throws an error: unreported exception IOException; must be caught or 
> declared to be thrown.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

Reply via email to