Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4955495

Incorrect Example info for Accessing Resources in Location Independent Method

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Won't Fix
    • Affects Version/s: 1.4.2
    • Fix Version/s: None
    • Component/s: docs
    • Subcomponent:
    • CPU:
      x86
    • OS:
      linux

      Description



      Name: rmT116609 Date: 11/17/2003


      A DESCRIPTION OF THE PROBLEM :
      Find "Client Code" Header
      Find "second example"

      /*
      The second example uses "relative resource" names and the new mechanism, available from the compiler through the -experimental flag, to get a class Class object:
      */

      Remove ", available from the compiler through the -experimental flag,".

      REASONS:

      1. undocumented flag
      2. not available
       javac -verbose -experimental
      javac: invalid flag: -experimental
      Usage: javac <options> <source files>
      where possible options include: blah, blah , blah

      so, the text of the html file discussed in the bug report ( search for experimental in that page to find the reference ) explains how to use the class loader but it relies on a feature that is not available to users.

      So, please tell us what is the correct flag to use to create those results or delete the section that discusses the flag.

      URL OF FAULTY DOCUMENTATION :
      j2sdk1.4.2/docs/guide/resources/resources.html
      (Incident Review ID: 199511)
      ======================================================================

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              rmandalasunw Ranjith Mandala (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: