better error message required.

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P4
    • None
    • Affects Version/s: 1.4.0
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: