scientificware / jdk

Read-only mirror of https://hg.openjdk.java.net/jdk/jdk
GNU General Public License v2.0
0 stars 0 forks source link

JDK-8265909 : build.tools.dtdbuilder.DTDBuilder.java failed detecting missing path of dtd_home #3626 #2

Open scientificware opened 3 years ago

scientificware commented 3 years ago

The purpose of this issue is to made DTDBuilder.java usable with a null dtd_home string value.

This is referenced in Java Bug Database as

This is tracked in JBS as

Related Pull Request

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