JDK-8074431 : Remove native2ascii tool
  • Type: Bug
  • Component: tools
  • Affected Version: 9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2015-03-04
  • Updated: 2020-06-22
  • Resolved: 2015-05-23
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
9 b67Fixed
Related Reports
Blocks :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Sub Tasks
JDK-8173074 :  
NetBeans and IntelliJ support the transparent native-to-ascii conversion.  There is a maven native 2 ascii plugin.  JEP 226 proposes to support UTF Properties file that will address the original motivation of creating the native2ascii tool.

This issue proposes to remove native2ascii tool from JDK 9.

https://bz.apache.org/bugzilla/show_bug.cgi?id=59855 By Stefan Bodewig from apache Ant: " * sbt uses Ant to run native2ascii so any sbt installation using Ant < 1.9.8 won't be able to use native2ascii * gradle doesn't seem to support native2ascii directly at all, this means people will either be using the CLI tool or Ant - in the later case they'll need to upgrade Ant, in the former case the JDK team's decision will break their builds. * maven doesn't support the equivalent of native2ascii's -reverse option I have no idea what the IDE integrations mentioned use, but wouldn't be surprised if the called out to the JDK tool under the covers either."

The proposal to remove native2ascii has been sent to jdk9-dev and core-libs-dev to get feedback. http://mail.openjdk.java.net/pipermail/core-libs-dev/2015-March/032634.html http://mail.openjdk.java.net/pipermail/jdk9-dev/2015-April/002092.html There isn't much response to that proposal. The plan is to remove native2ascii in JDK 9.

Ant native2ascii task depends on sun.tools.native2ascii.Main. It would be simple for them just to take the native2ascii implementation and eliminate the dependency. http://grepcode.com/file/repo1.maven.org/maven2/org.apache.ant/ant/1.9.3/org/apache/tools/ant/taskdefs/optional/native2ascii/SunNative2Ascii.java#SunNative2Ascii