Buggy code:
private Issue . FluentUpdate fieldOperation ( String oper , String name , Object value ) { } public Issue . FluentUpdate fieldAdd ( String name , Object value ) { } public Issue . FluentUpdate fieldRemove ( String name , Object value ) { } } public final class FluentTransition { Map < String , Object > fields = new HashMap < String , Object > ( ) ; JSONArray transitions = null ; private FluentTransition ( JSONArray transitions ) { } private JSONObject getTransition ( String id , boolean name ) throws JiraException { } private void realExecute ( JSONObject trans ) throws JiraException { } public void execute ( int id ) throws JiraException { } public void execute ( String name ) throws JiraException { } public Issue . FluentTransition field ( String name , Object value ) { } } public static class SearchResult { public int start = 0 ; public int max = 0 ; public int total = 0 ; public List < Issue > issues = null ; } private String key = null ; private Map fields = null ; private User assignee = null ; private List < Attachment > attachments = null ; private ChangeLog changeLog = null ; private List < Comment > comments = null ; private List < Component > components = null ; private String description = null ; private Date dueDate = null ; private List < Version > fixVersions = null ; private List < IssueLink > issueLinks = null ; private IssueType issueType = null ; private List < String > labels = null ; private Issue parent = null ; private Priority priority = null ; private Project project = null ; private User reporter = null ; private Resolution resolution = null ; private Date resolutionDate = null ; private Status status = null ; private List < Issue > subtasks = null ; private String summary = null ; private TimeTracking timeTracking = null ; private List < Version > versions = null ; private Votes votes = null ; private Watches watches = null ; private List < WorkLog > workLogs = null ; private Integer timeEstimate = null ; private Integer timeSpent = null ; private Date createdDate = null ; private Date updatedDate = null ; protected Issue ( RestClient restclient , JSONObject json ) { } private void deserialise ( JSONObject json ) { } private static String getRestUri ( String key ) { } public static JSONObject getCreateMetadata ( RestClient restclient , String project , String issueType ) throws JiraException { } private JSONObject getEditMetadata ( ) throws JiraException { } private JSONArray getTransitions ( ) throws JiraException { } public void addAttachment ( File file ) throws JiraException { } public void addRemoteLink ( String url , String title , String summary ) throws JiraException { JSONObject req = new JSONObject ( ) ; JSONObject obj = new JSONObject ( ) ; obj . put ( "url" , url ) ; obj . put ( "title" , title ) ; obj . put ( "summary" , summary ) ; req . put ( "object" , obj ) ; try { restclient . post ( ( ( Issue . getRestUri ( key ) ) + "//remotelink" ) , req ) ; } catch ( Exception ex ) { <START_BUG> throw new JiraException ( ( "Failed<seq2seq4repair_space>add<seq2seq4repair_space>comment<seq2seq4repair_space>to<seq2seq4repair_space>issue<seq2seq4repair_space>" + ( key ) ) , ex ) ; <END_BUG> } } public void addComment ( String body ) throws JiraException { } public void addComment ( String body , String visType , String visName ) throws JiraException { } public void link ( String issue , String type ) throws JiraException { } public void link ( String issue , String type , String body ) throws JiraException { } public void link ( String issue , String type , String body , String visType , String visName ) throws JiraException { } public static Issue . FluentCreate create ( RestClient restclient , String project , String issueType ) throws JiraException { } public Issue . FluentCreate createSubtask ( ) throws JiraException { } private static JSONObject realGet ( RestClient restclient , String key , Map < String , String > queryParams ) throws JiraException { } public static Issue get ( RestClient restclient , String key ) throws JiraException { } public static Issue get ( RestClient restclient , String key , final String includedFields ) throws JiraException { } public static Issue get ( RestClient restclient , String key , final String includedFields , final String expand ) throws JiraException { } public static Issue . SearchResult search ( RestClient restclient , String jql ) throws JiraException { } public static Issue . SearchResult search ( RestClient restclient , String jql , String includedFields , Integer maxResults ) throws JiraException { } public static Issue . SearchResult search ( RestClient restclient , String jql , String includedFields , String expandFields , Integer maxResults , Integer startAt ) throws JiraException { } public void refresh ( ) throws JiraException { } public void refresh ( final String includedFields ) throws JiraException { } public Object getField ( String name ) { } public Issue . FluentTransition transition ( ) throws JiraException { } public Issue . FluentUpdate update ( ) throws JiraException { } public void vote ( ) throws JiraException { } public void unvote ( ) throws JiraException { } public void addWatcher ( String username ) throws JiraException { } public void deleteWatcher ( String username ) throws JiraException { } @ Override public String toString ( ) { } public ChangeLog getChangeLog ( ) { } public String getKey ( ) { } public User getAssignee ( ) { } public List < Attachment > getAttachments ( ) { } public List < Comment > getComments ( ) { } public List < Component > getComponents ( ) { }

Fix:
throw new JiraException ( ( "Failed<seq2seq4repair_space>add<seq2seq4repair_space>remote<seq2seq4repair_space>link<seq2seq4repair_space>to<seq2seq4repair_space>issue<seq2seq4repair_space>" + ( key ) ) , ex ) ;