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

Compiler errors in IDE for Unsafe #5

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

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

This comment has been minimized.

Show comment
Hide comment
@kineshsatiya

kineshsatiya Dec 3, 2016

Contributor

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;
Contributor

kineshsatiya commented Dec 3, 2016

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

This comment has been minimized.

Show comment
Hide comment
@toolbear

toolbear Dec 3, 2016

Contributor

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

image

Contributor

toolbear commented Dec 3, 2016

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