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

Workaround JDK bug 8034057 #12970

Closed
wants to merge 3 commits into from
Closed

Conversation

rmuir
Copy link
Contributor

@rmuir rmuir commented Aug 18, 2015

See https://bugs.openjdk.java.net/browse/JDK-8034057, where two filesystem methods are broken for SUBST'd drive letters (this is basically where you map a local drive to another letter, like c:\foo -> d:).

These bugs won't be fixed until java 9, but its a configuration some people use on windows.

@rmuir rmuir added the >bug label Aug 18, 2015
/**
* Files.getFileStore(Path) useless here! Don't complain, just try it yourself.
*/
@SuppressForbidden(reason = "works around the bugs")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just for kicks can we have reason = "works around https://bugs.openjdk.java.net/browse/JDK-8034057" it's just more obvious which bug is meant

@s1monw
Copy link
Contributor

s1monw commented Aug 18, 2015

left some minor comments LGTM otherwise

@rjernst
Copy link
Member

rjernst commented Aug 18, 2015

LGTM too

@s1monw
Copy link
Contributor

s1monw commented Aug 18, 2015

LGTM

@rmuir
Copy link
Contributor Author

rmuir commented Aug 18, 2015

This is pretty ugly code, but the bug is even uglier, ES won't start at all, plugin installation won't work, etc.

So I don't know what versions we want this in, someone other than me decide.

FYI I also sent an email to nio-dev, asking about the real fix...

@s1monw
Copy link
Contributor

s1monw commented Aug 18, 2015

I am ok with this going into 2.0

@rmuir
Copy link
Contributor Author

rmuir commented Aug 18, 2015

Fixed in e07f039

@rmuir rmuir closed this Aug 18, 2015
@pickypg
Copy link
Member

pickypg commented Aug 18, 2015

JDK backport link: https://bugs.openjdk.java.net/browse/JDK-8133891

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants