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

better error message required.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.4.0
    • tools
    • None
    • sparc
    • solaris_9

      For testcase
      =============

      jtools-sqe:/home/vr128054/vertest/work/javah 2296 % more m.java
      class test
      {
              public void doNothing ()
              {
                      interface testable
                      {
                      }

                      class local
                      {
                      }
              }
      }


      The error message is
      =====================

      jtools-sqe:/home/vr128054/vertest/work/javah 2300 % javac m.java
      m.java:5: modifier interface not allowed here
                      interface testable
                      ^
      1 error

      To call an 'interface' keyword a modifier looks odd.

            gafter Neal Gafter (Inactive)
            rvijayansunw Ra Vijayan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: