Compiler errors in IDE for Unsafe #5

Closed
toolbear opened this Issue Dec 3, 2016 · 2 comments

Projects

None yet

3 participants

@toolbear
Contributor
toolbear commented Dec 3, 2016

In the hollow subproject I get a handful of compiler errors regarding the use of sun.misc.Unsafe. For example:

Access restriction: The type 'Unsafe' is not API
Access restriction: The method 'Unsafe.getLong(Object, long)
…

For me this happens after a pristine import into Eclipse. It may fail for other IDEs.

@kineshsatiya

Upon running gradle build in hollow subproject using intelliJ IDE, I get a couple of warnings.

Unsafe is internal proprietary API and may be removed in a future release
import sun.misc.Unsafe;

Another issue, that I see, errors in my IDE in project hollow-diff-ui


hollow/hollow-diff-ui/src/tools/java/com/netflix/hollow/diff/ui/DiffUITest.java:3: error: package org.junit does not exist
import org.junit.Test;
                ^
hollow/hollow-diff-ui/src/tools/java/com/netflix/hollow/diff/ui/DiffUITest.java:6: error: cannot find symbol import com.netflix.hollow.diffview.FakeHollowDiffGenerator;
@toolbear
Contributor
toolbear commented Dec 3, 2016 edited

I was able to get Eclipse working by changing "Forbidden Reference" to Warning under Java CompilerErrors/WarningsDeprecated and restricted API

image

@dkoszewnik dkoszewnik closed this Jan 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment