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

tomlWriter.write NullPointerException in JDK9 #46

Closed
iwangxiaodong opened this issue Aug 5, 2017 · 2 comments
Closed

tomlWriter.write NullPointerException in JDK9 #46

iwangxiaodong opened this issue Aug 5, 2017 · 2 comments

Comments

@iwangxiaodong
Copy link

com.moandjiezana.toml.ValueWriters class method in JDK9:

private static DateValueReaderWriter getPlatformSpecificDateConverter() {
return Runtime.class.getPackage().getSpecificationVersion().startsWith("1.6") ? DATE_PARSER_JDK_6 : DATE_VALUE_READER_WRITER;
}

NullPointerException: Runtime.class.getPackage().getSpecificationVersion() is null!

mwanji added a commit that referenced this issue Aug 5, 2017
@iwangxiaodong
Copy link
Author

Nice!

@mwanji
Copy link
Owner

mwanji commented Aug 5, 2017

Thanks for reporting this! If you get a chance, could you run it on JDK9 (by checking out the wip branch) to be sure it's fixed (if you haven't already)?

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

No branches or pull requests

2 participants