Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.java > #11821

Re: [Help] Re: Bug#966878: figtree: FTBFS: [javac] /<<PKGBUILDDIR>>/src/figtree/application/JSONTreeExporter.java:56: error: JSONTreeExporter is not abstract and does not override abstract method close() in TreeExporter

From Andreas Tille <andreas@fam-tille.de>
Newsgroups linux.debian.maint.java
Subject Re: [Help] Re: Bug#966878: figtree: FTBFS: [javac] /<<PKGBUILDDIR>>/src/figtree/application/JSONTreeExporter.java:56: error: JSONTreeExporter is not abstract and does not override abstract method close() in TreeExporter
Date 2020-08-05 19:30 +0200
Message-ID <AAvoJ-7ZK-3@gated-at.bofh.it> (permalink)
References <AzE17-Du-73@gated-at.bofh.it> <AzEX7-1fV-3@gated-at.bofh.it> <AzHUZ-31I-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Uploaded.  Thanks a lot, Andreas.

On Mon, Aug 03, 2020 at 01:29:28PM +0100, Sudip Mukherjee wrote:
> Hi Andreas,
> 
> On Mon, Aug 3, 2020 at 10:25 AM Andreas Tille <andreas@an3as.eu> wrote:
> >
> > Control: tags -1 help
> >
> > Hi Java team
> >
> > I admit I have no idea how to tackle this.  Any help would be really
> > appreciated.
> 
> The attached patch should fix the FTBFS you have.
> 
> 
> -- 
> Regards
> Sudip

> Description: Fix FTBFS
>  The recent update of jebl2 removed the 'IOException' and has also added
>  close() which needs to be overriden.
> 
> Author: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
> Bug-Debian: https://bugs.debian.org/966878
> Forwarded: no
> 
> ---
> 
> --- figtree-1.4.4.orig/src/figtree/application/JSONTreeExporter.java
> +++ figtree-1.4.4/src/figtree/application/JSONTreeExporter.java
> @@ -80,13 +80,13 @@ public class JSONTreeExporter implements
>       * @throws java.io.IOException
>       */
>      @Override
> -    public void exportTree(Tree tree) throws IOException {
> +    public void exportTree(Tree tree) {
>          java.util.List<Tree> trees = new ArrayList<Tree>();
>          trees.add(tree);
>          exportTrees(trees);
>      }
>  
> -    private void writeTrees(Collection<? extends Tree> trees) throws IOException {
> +    private void writeTrees(Collection<? extends Tree> trees) {
>          int indent = 0;
>          int treeCount = 0;
>  
> @@ -178,10 +178,15 @@ public class JSONTreeExporter implements
>      }
>  
>      @Override
> -    public void exportTrees(Collection<? extends Tree> trees) throws IOException {
> +    public void exportTrees(Collection<? extends Tree> trees) {
>          writeTrees(trees);
>      }
>  
> +    @Override
> +    public void close() {
> +        close();
> +    }
> +
>      final private String nameRegex = "^(\\w|-)+$";
>  
>  


-- 
http://fam-tille.de

Back to linux.debian.maint.java | Previous | NextPrevious in thread | Find similar


Thread

Bug#966878: [Help] Re: Bug#966878: figtree: FTBFS: [javac] /<<PKGBUILDDIR>>/src/figtree/application/JSONTreeExporter.java:56: error: JSONTreeExporter is not abstract and does not override abstract method close() in TreeExporter Andreas Tille <andreas@an3as.eu> - 2020-08-03 11:30 +0200
  Bug#966878: [Help] Re: Bug#966878: figtree: FTBFS: [javac] /<<PKGBUILDDIR>>/src/figtree/application/JSONTreeExporter.java:56: error: JSONTreeExporter is not abstract and does not override abstract method close() in TreeExporter Sudip Mukherjee <sudipm.mukherjee@gmail.com> - 2020-08-03 14:40 +0200
    Re: [Help] Re: Bug#966878: figtree: FTBFS: [javac]  /<<PKGBUILDDIR>>/src/figtree/application/JSONTreeExporter.java:56: error:  JSONTreeExporter is not abstract and does not override abstract method  close() in TreeExporter Andreas Tille <andreas@fam-tille.de> - 2020-08-05 19:30 +0200

csiph-web