schemacrawler / SchemaCrawler

Free database schema discovery and comprehension tool
http://www.schemacrawler.com/
Other
1.62k stars 199 forks source link

AdditionalExecutable is not abstract and does not override abstract method executeOn #151

Closed adriens closed 6 years ago

adriens commented 6 years ago

Hi @sualeh , since 14.17.01, plugin compilation is fialing with the following message :

Could you give us some guidelines on :

Thank you in advance for your help, i've provided you the build log in case it could help :

[INFO] 2 errors 
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.511 s
[INFO] Finished at: 2017-11-20T13:25:59+11:00
[INFO] Final Memory: 20M/281M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default-compile) on project schemacrawler-dashboard: Compilation failure: Compilation failure:
[ERROR] /home/salad74/NetBeansProjects/schemacrawler-plugin-dashboard/src/main/java/com/github/adriens/AdditionalExecutable.java:[28,8] com.github.adriens.AdditionalExecutable is not abstract and does not override abstract method executeOn(schemacrawler.schema.Catalog,java.sql.Connection,schemacrawler.schemacrawler.DatabaseSpecificOverrideOptions) in schemacrawler.tools.executable.StagedExecutable
[ERROR] /home/salad74/NetBeansProjects/schemacrawler-plugin-dashboard/src/main/java/com/github/adriens/AdditionalExecutable.java:[48,17] executeOn(schemacrawler.schema.Catalog,java.sql.Connection) in com.github.adriens.AdditionalExecutable cannot override executeOn(schemacrawler.schema.Catalog,java.sql.Connection) in schemacrawler.tools.executable.BaseStagedExecutable
[ERROR] overridden method is final
adriens commented 6 years ago
public class AdditionalExecutable
        extends BaseStagedExecutable {

    private static final Logger LOGGER = Logger
            .getLogger(AdditionalExecutable.class.getName());
...

    @Override
    public void executeOn(final Catalog catalog, final Connection connection)
            throws Exception {
schemacrawler commented 6 years ago

@adriens I will leave this issue open until I can fix the archetype.

For your existing executable, you will need to override

  void executeOn(Catalog catalog,
                 Connection connection,
                 DatabaseSpecificOverrideOptions databaseSpecificOverrideOptions)
    throws Exception;
adriens commented 6 years ago

Thanks @sualeh , i give it a try right now !

adriens commented 6 years ago

Yep, it did the job. :+1:

adriens commented 6 years ago

Did you modify the archetyp with this new signature ?

schemacrawler commented 6 years ago

No, I am leaving this issue open until I fix the archetype.

adriens commented 6 years ago

Hmm, btw, i gues this is the objects that makes it possbile to user quotingStrategy, right ?

adriens commented 6 years ago

Impressive support performances : "adriens opened this Issue 2 hours ago " :smile_cat:

Have a nice week !...and thanks for the release ! :rocket:

schemacrawler commented 6 years ago

@adriens - I am solving this another way, by not changing the original API for executables. Please wait for the next release.

adriens commented 6 years ago

Ok, i'm waiting for this.

schemacrawler commented 6 years ago

Sorry for breaking this 👎

adriens commented 6 years ago

No problem, i'm happy to be source of enhancement as bêta tester ;-p This a pretty cool collaboration process :+1:

schemacrawler commented 6 years ago

Fixed in SchemaCrawler 14.17.02.