Andrey Kalinin created IGNITE-10941:
--------------------------------------- Summary: Ignite won't build with Java 11 Key: IGNITE-10941 URL: https://issues.apache.org/jira/browse/IGNITE-10941 Project: Ignite Issue Type: Bug Environment: ~$ /usr/lib/jvm/java-11-oracle/bin/java -version java version "11.0.1" 2018-10-16 LTS Java(TM) SE Runtime Environment 18.9 (build 11.0.1+13-LTS) Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.1+13-LTS, mixed mode) ~$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 18.04.1 LTS Release: 18.04 Codename: bionic Reporter: Andrey Kalinin *sun.misc*, *sun.nio.ch*, *com.sun.jmx.mbeanserver* is no longer supported in Java 11. This makes it impossible to build Apache Ignite for this version. When I run the build from the IDE, I get the following error messages (Warnings removed): {code:java} Information:java: Errors occurred while compiling module 'ignite-core' Information:javac 11.0.1 was used to compile java sources Information:15.01.19 14:07 - Compilation completed with 33 errors and 100 warnings in 33 s 148 ms --- /home/kalinin/git/incubator-ignite/modules/core/src/main/java/org/apache/ignite/internal/util/IgniteUtils.java Error:(258, 16) java: package sun.misc does not exist Error:(8743, 29) java: cannot find symbol symbol: class Unsafe location: class org.apache.ignite.internal.util.IgniteUtils Error:(8743, 49) java: cannot find symbol symbol: class Unsafe location: class org.apache.ignite.internal.util.IgniteUtils /home/kalinin/git/incubator-ignite/modules/core/src/main/java/org/apache/ignite/internal/util/GridUnsafe.java Error:(32, 16) java: package sun.misc does not exist Error:(60, 26) java: cannot find symbol symbol: class Unsafe location: class org.apache.ignite.internal.util.GridUnsafe Error:(1389, 20) java: cannot find symbol symbol: class Unsafe location: class org.apache.ignite.internal.util.GridUnsafe Error:(1391, 20) java: cannot find symbol symbol: variable Unsafe location: class org.apache.ignite.internal.util.GridUnsafe Error:(1396, 52) java: cannot find symbol symbol: class Unsafe location: class org.apache.ignite.internal.util.GridUnsafe Error:(1397, 42) java: cannot find symbol symbol: class Unsafe Error:(1398, 39) java: cannot find symbol symbol: class Unsafe Error:(1402, 37) java: cannot find symbol symbol: class Unsafe --- /home/kalinin/git/incubator-ignite/modules/core/src/main/java/org/apache/ignite/internal/binary/BinaryMarshaller.java Error:(31, 16) java: package sun.misc does not exist Error:(56, 29) java: cannot find symbol symbol: class Unsafe location: class org.apache.ignite.internal.binary.BinaryMarshaller Error:(56, 49) java: cannot find symbol symbol: class Unsafe location: class org.apache.ignite.internal.binary.BinaryMarshaller /home/kalinin/git/incubator-ignite/modules/core/src/main/java/org/apache/ignite/internal/marshaller/optimized/OptimizedMarshaller.java Error:(34, 16) java: package sun.misc does not exist Error:(285, 29) java: cannot find symbol symbol: class Unsafe location: class org.apache.ignite.internal.marshaller.optimized.OptimizedMarshaller Error:(285, 49) java: cannot find symbol symbol: class Unsafe location: class org.apache.ignite.internal.marshaller.optimized.OptimizedMarshaller --- /home/kalinin/git/incubator-ignite/modules/core/src/main/java/org/jsr166/ConcurrentLinkedDeque8.java Error:(30, 16) java: package sun.misc does not exist Error:(327, 38) java: package sun.misc does not exist Error:(1693, 34) java: package sun.misc does not exist Error:(1716, 12) java: cannot find symbol symbol: class Unsafe location: class org.jsr166.ConcurrentLinkedDeque8<E> Error:(1718, 20) java: cannot find symbol symbol: variable Unsafe location: class org.jsr166.ConcurrentLinkedDeque8<E> Error:(1723, 52) java: cannot find symbol symbol: class Unsafe location: class org.jsr166.ConcurrentLinkedDeque8<E> Error:(1725, 32) java: cannot find symbol symbol: class Unsafe Error:(1726, 39) java: cannot find symbol symbol: class Unsafe Error:(1730, 37) java: cannot find symbol symbol: class Unsafe --- /home/kalinin/git/incubator-ignite/modules/core/src/main/java/org/apache/ignite/internal/mem/file/MappedFile.java Error:(29, 18) java: package sun.nio.ch does not exist Error:(33, 62) java: cannot find symbol symbol: class FileChannelImpl location: class org.apache.ignite.internal.mem.file.MappedFile Error:(36, 64) java: cannot find symbol symbol: class FileChannelImpl location: class org.apache.ignite.internal.mem.file.MappedFile --- /home/kalinin/git/incubator-ignite/modules/core/src/main/java/org/apache/ignite/internal/tck/TCKMBeanServerBuilder.java Error:(20, 31) java: package com.sun.jmx.mbeanserver does not exist Error:(37, 16) java: cannot find symbol symbol: variable JmxMBeanServer location: class org.apache.ignite.internal.tck.TCKMBeanServerBuilder /home/kalinin/git/incubator-ignite/modules/core/src/main/java/org/apache/ignite/internal/util/UnsafeDirectBufferCleaner.java Error:(22, 16) java: package sun.misc does not exist Error:(36, 26) java: cannot find symbol symbol: class Unsafe location: class org.apache.ignite.internal.util.UnsafeDirectBufferCleaner ---{code} -- This message was sent by Atlassian JIRA (v7.6.3#76005) |
Free forum by Nabble | Edit this page |