build.tools.dtdbuilder.DTDBuilder.java failed detecting missing path of dtd_home
When none dtd_home property is set the dtd_home string value is not null.
In jshell, try System.getProperty("html32") + "" you'll get a String.
So, in DTDBuilder.java when none dtd_home property is set, the dtd_home string value is not null, causing an exception with the present test.
The expected value is "Must set property 'dtd_home'"
And in this case, should'nt we have a System.exit(1) too rather than a simple return ?
Dépôt de rapport de Bug :
Status
internal review ID : 9070005
Thank You
Thank you for taking the time to provide us with your details.
What's Next
We will review your report and have assigned it an internal review ID : 9070005. Depending upon the completeness of the report and our ability to reproduce the problem, either a new bug will be posted, or we will contact you for further information.
We will try to process all newly posted bugs in a timely manner, but we make no promises about the amount of time in which a bug will be fixed. If you just reported a bug that could have a major impact on your project, consider using one of the technical support offerings available at Oracle Support.
The purpose of this issue is to made
DTDBuilder.java
usable with a nulldtd_home
string value.This is referenced in Java Bug Database as
This is tracked in JBS as
Related Pull Request
When none
dtd_home
property is set thedtd_home
string value is notnull
.In jshell, try System.getProperty("html32") + "" you'll get a String.
So, in DTDBuilder.java when none dtd_home property is set, the dtd_home string value is not null, causing an exception with the present test.
The expected value is "Must set property 'dtd_home'"
And in this case, should'nt we have a System.exit(1) too rather than a simple return ?
Dépôt de rapport de Bug :
Status
internal review ID : 9070005Integrated into the JDK since JDK 18.