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

Error without diagnostic position

    XMLWordPrintable

Details

    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

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

              Dates

                Created:
                Updated:
                Resolved: