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

File should support "strictly case sensitive" mode for file name/path matching

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 1.4.2
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Understanding:
      Fix Understood
    • CPU:
      x86
    • OS:
      windows_xp

      Description

      Name: gm110360 Date: 05/12/2004


      A DESCRIPTION OF THE REQUEST :
      Just has java has -Xfuture mode to impose more strict access restrictions and such, it should also have a "strictly case sensitive" mode of file name and path matching. When such a mode is enabled on OS's such as Windows or MacOS,
      case errors would result in failures, even if they would otherwise
      be forgiven by the underlying filesystem.


      JUSTIFICATION :
      This would avoid deployment failures where Java programs worked on Windows or MacOS, but then failed on Solaris or other OS'es where the only problem was an undetected case-matching error between an internal file name and the external file name. If developers had this feature available and used it, they could catch case errors even if they did not have access to fully case-sensitive
      filesystems.


      CUSTOMER SUBMITTED WORKAROUND :
      Case errors in typical resource loading can be checked by insisting that all resources be in jar files which, of course, do fail on case errors. But any files accessed directly via java.io.File can only be tested on platforms that have case-sensitive filesystems (again, Solaris, etc.). Deployed applications with such errors can often be repaired by simply renaming the files, but many sensitive sites might consider such modifications as unacceptable.
      (Incident Review ID: 238198)
      ======================================================================

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alanb Alan Bateman
                Reporter:
                gmanwanisunw Girish Manwani (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Imported:
                  Indexed: