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

Expressions involving primitive-type field access can cause compiler error in codepad

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: 3.0.2
    • Fix Version/s: 3.0.3
    • Component/s: CodePad

      Description

      Expressions involving primitive-type field access can cause a compiler error ("unreachable code") in the codepad.

      eg enter the following class:

      class Foo {
        int a;
      }
      

      Then in the codepad:

      Foo f = new Foo();
      f.a + 5
      

      ... results in a confusing error message.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: