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

Error without diagnostic position

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Cannot Reproduce
    • Affects Version/s: 8
    • Fix Version/s: 9
    • Component/s: tools

      Description

      Consider this code:
      ---
      class DiagsTest {
          static void run(int i) {
              new Object() {{
                  run(null);
              }};
          }
      }
      ---

      Compiling this with "1.8.0-b132" javac:
      ---
      $ javac DiagsTest.java
      error: incompatible types: <null> cannot be converted to int
      Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
      1 error
      ---

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jlahoda Jan Lahoda
                Reporter:
                jlahoda Jan Lahoda
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: