United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: 6870706 langtools launcher issues
6870706 : langtools launcher issues

Details
Type:
Bug
Submit Date:
2009-08-11
Status:
Resolved
Updated Date:
2010-05-10
Project Name:
JDK
Resolved Date:
2009-08-28
Component:
infrastructure
OS:
generic
Sub-Component:
build
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:
7

Related Reports
Backport:

Sub Tasks

Description
The langtools repo provides a launcher script to provide simple direct invocation of the jar files that for the various tools in the repository. (This is a simple script for developers, not the main JDK launcher binary.)

There are two issues that need addressing. 

1. The -ea switch has an incorrect value. It should be -ea:com.sun.tools... and not just -ea:com.sun.tools. (The latter would enable assertions in a class named com.sun.tools.)

2. The scripts currently use "java" to invoke the jar file. With the change to v51 class files, it is less likely that the version of java on the path will be able to run the jar file. The scripts should use a better value than just "java". ${target.java.home}/bin/java seems the obvious choice. [Issue: is ${target.java.home} always an absolute path?]

                                    

Comments
EVALUATION

Yes.
                                     
2009-08-11



Hardware and Software, Engineered to Work Together