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

Java public-static-final field type not declared as exported #13746

Open
stuhood opened this issue Nov 30, 2021 · 1 comment
Open

Java public-static-final field type not declared as exported #13746

stuhood opened this issue Nov 30, 2021 · 1 comment
Labels
backend: JVM JVM backend-related issues

Comments

@stuhood
Copy link
Member

stuhood commented Nov 30, 2021

A declaration like:

public static final HuffmanDecoder DECODER = new HuffmanDecoder(HUFFMAN_CODES, HUFFMAN_CODE_LENGTHS);

...apparently results in the HuffmanDecoder type being necessary to consume the static field:

.../Decoder.java:536: error: cannot access HuffmanDecoder
    result = Huffman.DECODER.decode(buf);

...but it is not currently exported.

@stuhood
Copy link
Member Author

stuhood commented Nov 30, 2021

This represented roughly 2.5% of the issues in akka-http.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend: JVM JVM backend-related issues
Projects
None yet
Development

No branches or pull requests

2 participants