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

MessageFormat has an undocumented limit of 10 substitutions.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.1.6
    • core-libs
    • sparc
    • solaris_2.6



      Name: gsC80088 Date: 02/11/99


      This is from the MessageFormat source: It appears the developers have acknowledged this limit...

      // ===========================privates============================
      // Mark : Is this the right fix? (HS)
      private Locale locale = Locale.getDefault();
      private String pattern = "";
      // later, allow more than ten items
      private Format[] formats = new Format[10];
      private int[] offsets = new int[10];
      private int[] argumentNumbers = new int[10];
      private int maxOffset = -1;
      (Review ID: 39020)
      ======================================================================

            nlindenbsunw Norbert Lindenberg (Inactive)
            gstone Greg Stone
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: