Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Current master does not really compile with JDK 8 #70

Open
paulvi opened this issue Sep 14, 2021 · 0 comments
Open

Current master does not really compile with JDK 8 #70

paulvi opened this issue Sep 14, 2021 · 0 comments

Comments

@paulvi
Copy link
Contributor

paulvi commented Sep 14, 2021

Current master b82f7f7 does not really compile with JDK 8

Parameter for @Deprecated(forRemoval = true) and List.of method appeared only in JDK 9.

Even with fix #69 ccef8ef (that actually makes pass for JDK 11)

So what is target JDK version?

polkaj2 % gradle -v

------------------------------------------------------------
Gradle 6.8.3
------------------------------------------------------------

Build time:   2021-02-22 16:13:28 UTC
Revision:     9e26b4a9ebb910eaa1b8da8ff8575e514bc61c78

Kotlin:       1.4.20
Groovy:       2.5.12
Ant:          Apache Ant(TM) version 1.10.9 compiled on September 27 2020
JVM:          11.0.12 (GraalVM Community 11.0.12+6-jvmci-21.2-b08)
OS:           Mac OS X 10.15.7 x86_64

polkaj2 % gradle properties 


> Task :properties

------------------------------------------------------------
Root project 'polkaj-root'
------------------------------------------------------------
...
org.gradle.java.home: /Library/Java/JavaVirtualMachines/jdk1.8.0_281.jdk/Contents/Home
...
1 actionable task: 1 executed
polkaj2 % gradle compileJava

> Configure project :polkaj-api-base
The maven plugin has been deprecated. This is scheduled to be removed in Gradle 7.0. Please use the maven-publish plugin instead. Consult the upgrading guide for further information: https://docs.gradle.org/6.8.3/userguide/upgrading_version_5.html#legacy_publication_system_is_deprecated_and_replaced_with_the_publish_plugins
        at common_java_app_cf9l7gcpkpadhwwlipjfex5gd.run(/Users/paul.verest/Workspaces/Polkadot/polkaj2/common_java_app.gradle:3)
        (Run with --stacktrace to get the full stack trace of this deprecation warning.)

> Task :polkaj-api-base:compileJava FAILED
/Users/paul.verest/Workspaces/Polkadot/polkaj2/polkaj-api-base/src/main/java/io/emeraldpay/polkaj/api/StandardCommands.java:135: error: cannot find symbol
    @Deprecated(forRemoval = true)
                             ^
  symbol:   method forRemoval()
  location: @interface Deprecated
/Users/paul.verest/Workspaces/Polkadot/polkaj2/polkaj-api-base/src/main/java/io/emeraldpay/polkaj/api/StandardCommands.java:147: error: cannot find symbol
    @Deprecated(forRemoval = true)
                             ^
  symbol:   method forRemoval()
  location: @interface Deprecated
/Users/paul.verest/Workspaces/Polkadot/polkaj2/polkaj-api-base/src/main/java/io/emeraldpay/polkaj/api/StandardCommands.java:160: error: cannot find symbol
    @Deprecated(forRemoval = true)
                             ^
  symbol:   method forRemoval()
  location: @interface Deprecated
/Users/paul.verest/Workspaces/Polkadot/polkaj2/polkaj-api-base/src/main/java/io/emeraldpay/polkaj/api/StandardCommands.java:175: error: cannot find symbol
    @Deprecated(forRemoval = true)
                             ^
  symbol:   method forRemoval()
  location: @interface Deprecated
/Users/paul.verest/Workspaces/Polkadot/polkaj2/polkaj-api-base/src/main/java/io/emeraldpay/polkaj/api/StandardCommands.java:193: error: cannot find symbol
    @Deprecated(forRemoval = true)
                             ^
  symbol:   method forRemoval()
  location: @interface Deprecated
/Users/paul.verest/Workspaces/Polkadot/polkaj2/polkaj-api-base/src/main/java/io/emeraldpay/polkaj/api/StandardCommands.java:211: error: cannot find symbol
    @Deprecated(forRemoval = true)
                             ^
  symbol:   method forRemoval()
  location: @interface Deprecated
/Users/paul.verest/Workspaces/Polkadot/polkaj2/polkaj-api-base/src/main/java/io/emeraldpay/polkaj/api/StandardCommands.java:229: error: cannot find symbol
    @Deprecated(forRemoval = true)
                             ^
  symbol:   method forRemoval()
  location: @interface Deprecated
/Users/paul.verest/Workspaces/Polkadot/polkaj2/polkaj-api-base/src/main/java/io/emeraldpay/polkaj/api/StandardCommands.java:246: error: cannot find symbol
    @Deprecated(forRemoval = true)
                             ^
  symbol:   method forRemoval()
  location: @interface Deprecated
/Users/paul.verest/Workspaces/Polkadot/polkaj2/polkaj-api-base/src/main/java/io/emeraldpay/polkaj/api/StandardCommands.java:273: error: cannot find symbol
    @Deprecated(forRemoval = true)
                             ^
  symbol:   method forRemoval()
  location: @interface Deprecated
/Users/paul.verest/Workspaces/Polkadot/polkaj2/polkaj-api-base/src/main/java/io/emeraldpay/polkaj/api/StandardCommands.java:288: error: cannot find symbol
    @Deprecated(forRemoval = true)
                             ^
  symbol:   method forRemoval()
  location: @interface Deprecated
/Users/paul.verest/Workspaces/Polkadot/polkaj2/polkaj-api-base/src/main/java/io/emeraldpay/polkaj/api/StandardCommands.java:137: error: cannot find symbol
        List<Object> params = at == null ? List.of(key) : List.of(key, at);
                                               ^
  symbol:   method of(ByteData)
  location: interface List
/Users/paul.verest/Workspaces/Polkadot/polkaj2/polkaj-api-base/src/main/java/io/emeraldpay/polkaj/api/StandardCommands.java:137: error: cannot find symbol
        List<Object> params = at == null ? List.of(key) : List.of(key, at);
                                                              ^
  symbol:   method of(ByteData,Hash256)
  location: interface List
/Users/paul.verest/Workspaces/Polkadot/polkaj2/polkaj-api-base/src/main/java/io/emeraldpay/polkaj/api/StandardCommands.java:149: error: cannot find symbol
        List<Object> params = at == null ? List.of(key) : List.of(key, at);
                                               ^
  symbol:   method of(ByteData)
  location: interface List
/Users/paul.verest/Workspaces/Polkadot/polkaj2/polkaj-api-base/src/main/java/io/emeraldpay/polkaj/api/StandardCommands.java:149: error: cannot find symbol
        List<Object> params = at == null ? List.of(key) : List.of(key, at);
                                                              ^
  symbol:   method of(ByteData,Hash256)
  location: interface List
/Users/paul.verest/Workspaces/Polkadot/polkaj2/polkaj-api-base/src/main/java/io/emeraldpay/polkaj/api/StandardCommands.java:162: error: cannot find symbol
        List<Object> params = at == null ? List.of(method, data) : List.of(method, data, at);
                                               ^
  symbol:   method of(String,ByteData)
  location: interface List
/Users/paul.verest/Workspaces/Polkadot/polkaj2/polkaj-api-base/src/main/java/io/emeraldpay/polkaj/api/StandardCommands.java:162: error: cannot find symbol
        List<Object> params = at == null ? List.of(method, data) : List.of(method, data, at);
                                                                       ^
  symbol:   method of(String,ByteData,Hash256)
  location: interface List
/Users/paul.verest/Workspaces/Polkadot/polkaj2/polkaj-api-base/src/main/java/io/emeraldpay/polkaj/api/StandardCommands.java:177: error: cannot find symbol
        List<Object> params = new ArrayList<>(List.of(childStorageKey, childDefinition, childType, key));
                                                  ^
  symbol:   method of(ByteData,ByteData,long,ByteData)
  location: interface List
/Users/paul.verest/Workspaces/Polkadot/polkaj2/polkaj-api-base/src/main/java/io/emeraldpay/polkaj/api/StandardCommands.java:195: error: cannot find symbol
        List<Object> params = new ArrayList<>(List.of(childStorageKey, childDefinition, childType, key));
                                                  ^
  symbol:   method of(ByteData,ByteData,long,ByteData)
  location: interface List
/Users/paul.verest/Workspaces/Polkadot/polkaj2/polkaj-api-base/src/main/java/io/emeraldpay/polkaj/api/StandardCommands.java:213: error: cannot find symbol
        List<Object> params = new ArrayList<>(List.of(childStorageKey, childDefinition, childType, key));
                                                  ^
  symbol:   method of(ByteData,ByteData,long,ByteData)
  location: interface List
/Users/paul.verest/Workspaces/Polkadot/polkaj2/polkaj-api-base/src/main/java/io/emeraldpay/polkaj/api/StandardCommands.java:231: error: cannot find symbol
        List<Object> params = new ArrayList<>(List.of(childStorageKey, childDefinition, childType, key));
                                                  ^
  symbol:   method of(ByteData,ByteData,long,ByteData)
  location: interface List
/Users/paul.verest/Workspaces/Polkadot/polkaj2/polkaj-api-base/src/main/java/io/emeraldpay/polkaj/api/StandardCommands.java:248: error: cannot find symbol
        List<Object> params = new ArrayList<>(List.of(key, count));
                                                  ^
  symbol:   method of(ByteData,int)
  location: interface List
/Users/paul.verest/Workspaces/Polkadot/polkaj2/polkaj-api-base/src/main/java/io/emeraldpay/polkaj/api/StandardCommands.java:259: error: cannot find symbol
        List<Object> params = new ArrayList<>(List.of(keys));
                                                  ^
  symbol:   method of(List<ByteData>)
  location: interface List
/Users/paul.verest/Workspaces/Polkadot/polkaj2/polkaj-api-base/src/main/java/io/emeraldpay/polkaj/api/StandardCommands.java:275: error: cannot find symbol
        List<Object> params = new ArrayList<>(List.of(keys, fromBlock));
                                                  ^
  symbol:   method of(List<ByteData>,Hash256)
  location: interface List
/Users/paul.verest/Workspaces/Polkadot/polkaj2/polkaj-api-base/src/main/java/io/emeraldpay/polkaj/api/StandardCommands.java:290: error: cannot find symbol
        List<Object> params = new ArrayList<>(List.of(keys));
                                                  ^
  symbol:   method of(List<ByteData>)
  location: interface List
/Users/paul.verest/Workspaces/Polkadot/polkaj2/polkaj-api-base/src/main/java/io/emeraldpay/polkaj/api/StandardSubscriptions.java:60: error: cannot find symbol
        return SubscribeCall.create(StorageChangeSetJson.class, PolkadotMethod.STATE_SUBSCRIBE_STORAGE, PolkadotMethod.STATE_UNSUBSCRIBE_STORAGE, List.of(keys));
                                                                                                                                                      ^
  symbol:   method of(List<ByteData>)
  location: interface List
25 errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':polkaj-api-base:compileJava'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 1s
7 actionable tasks: 7 executed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant