Bug 1095307 - java-1.8.0-openjdk: improve/fix javac man page
Summary: java-1.8.0-openjdk: improve/fix javac man page
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Fedora
Classification: Fedora
Component: java-1.8.0-openjdk
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Deepak Bhole
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-05-07 12:37 UTC by Michal Srb
Modified: 2014-05-12 19:41 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-05-09 16:38:15 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
openjdk bug system JDK-8042840 0 None None None Never

Description Michal Srb 2014-05-07 12:37:07 UTC
Description of problem:

From javac man page, section "PROGRAMMATIC INTERFACE":

EXAMPLE
    To compile as though providing command-line arguments, use the following syntax:

    JavaCompiler javac = ToolProvider.getSystemJavaCompiler();
    JavaCompiler javac = ToolProvider.getSystemJavaCompiler();


I believe it's a bug. Second line of the code snippet is the same as a first one.
Same example, but in older version of the javac man page [1] looks like following:

    JavaCompiler javac = ToolProvider.getSystemJavaCompiler();
    int rc = javac.run(null, null, null, args);

Which seems to be much better.

[1]: http://docs.oracle.com/javase/7/docs/technotes/tools/solaris/javac.html

Version-Release number of selected component (if applicable):
java-1.8.0-openjdk-devel-1.8.0.5-4.b13.fc21.x86_64

Comment 1 Omair Majid 2014-05-09 16:22:58 UTC
Filed upstream: https://bugs.openjdk.java.net/browse/JDK-8042840

Comment 2 Deepak Bhole 2014-05-09 16:38:15 UTC
Transferred to upstream, please track the bug in comment #1 instead of this one.


Note You need to log in before you can comment on or make changes to this bug.