Uploaded image for project: 'BlueJ'
  1. BlueJ
  2. BLUEJ-540

The code pad does not accept leading zeros for double literals

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: 3.1.4
    • Fix Version/s: 4.0.0preview
    • Component/s: CodePad

      Description

      The code pad does not accept leading zeros for double literals in some cases:

      double a = 3.14;

      double b = 01.2;

      3.14 -> 3.14 (double)

      01.2 -> Error: not a statement

      In addition:

      x = 2.3 -> 2.3 (double)

      x = 03.2 -> Error: ';' expected

        Attachments

          Activity

            People

            • Assignee:
              davmac Davin McCall
              Reporter:
              amjad Amjad Altadmri
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: