Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-5194

Improved hint for broken String concatenations

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 12.2
    • None
    • java - Editor, java - Hints
    • None

    Description

      The error in the code below is not that difficult to spot but this type of error becomes much more troublesome when working with complex nested statements.

      var name = "Erik";
      var age = 5;
              
      System.out.println("My name is " + name + " and I'm " + age " years old.");
      

      Current hint: ')' expected

      Examples of more helpful hints:
        '+' expected
        Broken String concatenation

      Attachments

        Activity

          People

            Unassigned Unassigned
            tofflos Erik
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: