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

Need a 'const' qualifier

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P3 P3
    • None
    • 1.1.3, 1.1.5
    • specification
    • None
    • generic, x86
    • generic, windows_nt



      Name: rlT66838 Date: 08/04/97


      Having developed a major (>100kloc) client/server application
      in Java over the past year, we have found that the lack of a
      'const'-like qualifier is one of Java's biggest shortcomings
      as far as the language is concerned.

      The only way to protect an object, currently, is to clone it
      before passing it; however, for obvious reasons, this is unacceptable
      in many cases for performance reasons.

      The reason this is a serious problem is that it significantly
      diminishes our ability to write bulletproof code with Java, since
      rogue code can do bad things much more easily.

      On the positive side, such a change could be implemented without
      affecting existing code.

      Anyway, thanks for listening...

      ======================================================================

            Unassigned Unassigned
            rlewis Roger Lewis (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: