#1210 [Freemind 1.0.1] FTBFS error: no suitable method found for register(JTextArea,boolean,boolean,boolean,boolean)

FreeMind_1.0.1
closed
nobody
None
5
2014-08-27
2014-07-29
Christoph Korn
No

Hi,

trying to compile Freemind 1.0.1 for the Ubuntu software site getdeb.net there is a compilation error:
build:
[mkdir] Created dir: /home/korn/packages/freemind/new/freemind-1.0.1/bin/classes
[javac] Compiling 372 source files to /home/korn/packages/freemind/new/freemind-1.0.1/bin/classes
[javac] warning: [options] bootstrap class path not set in conjunction with -source 1.6
[javac] /home/korn/packages/freemind/new/freemind-1.0.1/freemind/freemind/view/mindmapview/EditNodeDialog.java:268: error: no suitable method found for register(JTextArea,boolean,boolean,boolean,boolean)
[javac] SpellChecker.register(textArea, false, true, true, true);
[javac] ^
[javac] method SpellChecker.register(JTextComponent,boolean,boolean,boolean) is not applicable
[javac] (actual and formal argument lists differ in length)
[javac] method SpellChecker.register(JTextComponent) is not applicable
[javac] (actual and formal argument lists differ in length)
[javac] /home/korn/packages/freemind/new/freemind-1.0.1/freemind/freemind/view/mindmapview/EditNodeTextField.java:231: error: no suitable method found for register(JTextField,boolean,boolean,boolean,boolean)
[javac] SpellChecker.register(textfield, false, true, true, true);
[javac] ^
[javac] method SpellChecker.register(JTextComponent,boolean,boolean,boolean) is not applicable
[javac] (actual and formal argument lists differ in length)
[javac] method SpellChecker.register(JTextComponent) is not applicable
[javac] (actual and formal argument lists differ in length)
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 2 errors
[javac] 1 warning

I took the Debian package as starting point and there are some patches applied to the source.

See the attached file.

1 Attachments

Discussion

    • status: open --> pending
     
  • Hi,

    in FreeMind, jortho Version 1.0 is used. The register method has the following signature:
    public static void register( final JTextComponent text, boolean hasPopup, boolean submenu, boolean hasShortKey, boolean hasAutoSpell ) throws NullPointerException

    HTH, Chris

     
  • Christoph Korn
    Christoph Korn
    2014-08-01

    Thanks Chris. Seems there is an outdated version in Ubuntu which conflicts. Will include your version in the package.
    Should be published on GetDeb.net in some hours.

     
    • status: pending --> closed