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

Incorrect Example info for Accessing Resources in Location Independent Method

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 1.4.2
    • docs
    • x86
    • linux



      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)
      ======================================================================

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: