tobof / openhab-addons

The next-generation open Home Automation Bus (openHAB)
Eclipse Public License 2.0
39 stars 30 forks source link

Package build fails: Type mismatch: cannot convert from List<Object> to List<Integer> #35

Closed tobof closed 7 years ago

tobof commented 7 years ago

A "mvn clean package" in the directory "addons/binding/org.openhab.binding.mysensors/" results in:

[ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:0.24.0:compile (default-compile) on project org.openhab.binding.mysensors: Compilation failure: Compilation failure: [ERROR] /home/toberfoe/git/openhab2-addons/addons/binding/org.openhab.binding.mysensors/src/main/java/org/openhab/binding/mysensors/internal/handler/MySensorsBridgeHandler.java:[163] [ERROR] List givenIds = Arrays [ERROR] .stream(cacheFactory.readCache(MySensorsCacheFactory.GIVEN_IDS_CACHE_FILE, new int[] {}, int[].class)) [ERROR] .boxed().collect(Collectors.toList()); [ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [ERROR] Type mismatch: cannot convert from List to List [ERROR] /home/toberfoe/git/openhab2-addons/addons/binding/org.openhab.binding.mysensors/src/main/java/org/openhab/binding/mysensors/internal/handler/MySensorsBridgeHandler.java:[197] [ERROR] List givenIds = Arrays [ERROR] .stream(cacheFactory.readCache(MySensorsCacheFactory.GIVEN_IDS_CACHE_FILE, new int[] {}, int[].class)) [ERROR] .boxed().collect(Collectors.toList()); [ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [ERROR] Type mismatch: cannot convert from List to List [ERROR] /home/toberfoe/git/openhab2-addons/addons/binding/org.openhab.binding.mysensors/src/main/java/org/openhab/binding/mysensors/internal/handler/MySensorsBridgeHandler.java:[234] [ERROR] List givenIds = Arrays.stream( [ERROR] cacheFactory.readCache(MySensorsCacheFactory.GIVEN_IDS_CACHE_FILE, new int[] {}, int[].class)) [ERROR] .boxed().collect(Collectors.toList()); [ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

andreacioni commented 7 years ago

Yes, known issue. No solution found yet. There's something strange in mvn plugin that doesn't recognise lambda expressions. I'll try to investigate it one more time tonignt.

In the meantime, could you build the jar through Eclipse->Export->Deployable Plugins and fragment?

Il 19 Ott 2016 14:37, tobof notifications@github.com ha scritto:

A "mvn clean package" in the directory "addons/binding/org.openhab.binding.mysensors/" results in:

[ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:0.24.0:compile (default-compile) on project org.openhab.binding.mysensors: Compilation failure: Compilation failure: [ERROR] /home/toberfoe/git/openhab2-addons/addons/binding/org.openhab.binding.mysensors/src/main/java/org/openhab/binding/mysensors/internal/handler/MySensorsBridgeHandler.java:[163] [ERROR] List givenIds = Arrays [ERROR] .stream(cacheFactory.readCache(MySensorsCacheFactory.GIVEN_IDS_CACHE_FILE, new int[] {}, int[].class)) [ERROR] .boxed().collect(Collectors.toList()); [ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [ERROR] Type mismatch: cannot convert from List to List [ERROR] /home/toberfoe/git/openhab2-addons/addons/binding/org.openhab.binding.mysensors/src/main/java/org/openhab/binding/mysensors/internal/handler/MySensorsBridgeHandler.java:[197] [ERROR] List givenIds = Arrays [ERROR] .stream(cacheFactory.readCache(MySensorsCacheFactory.GIVEN_IDS_CACHE_FILE, new int[] {}, int[].class)) [ERROR] .boxed().collect(Collectors.toList()); [ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [ERROR] Type mismatch: cannot convert from List to List [ERROR] /home/toberfoe/git/openhab2-addons/addons/binding/org.openhab.binding.mysensors/src/main/java/org/openhab/binding/mysensors/internal/handler/MySensorsBridgeHandler.java:[234] [ERROR] List givenIds = Arrays.stream( [ERROR] cacheFactory.readCache(MySensorsCacheFactory.GIVEN_IDS_CACHE_FILE, new int[] {}, int[].class)) [ERROR] .boxed().collect(Collectors.toList()); [ERROR] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/tobof/openhab2-addons/issues/35, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AHIIhPV48Lda-Izx7jx10Q1hsAE5t8ZIks5q1g8AgaJpZM4Ka6vs.

andreacioni commented 7 years ago

Ok, seems to be resolved in last PR. Could you check too?

Thanks!

tobof commented 7 years ago

Solved!