Uploaded image for project: 'JaxMe'
  1. JaxMe
  2. JAXME-95

JavaParser.parseObject() handles inner interfaces incorrectly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.5
    • None
    • JaxMeJS
    • None
    • N/A

    Description

      In JavaParser.parseObject (468) the

      case JavaTokenTypes.INTERFACE_DEF:
      parseClassDefinition(pSource, JavaSource.CLASS, child);
      break;

      seems to be the copy-paste of the "case JavaTokenTypes.CLASS_DEF:" definition
      and therefore causes IllegalStateException when tries to parse an internal interface.

      The obvious correction would be to use JavaSource.INTERFACE instead.

      Attachments

        Activity

          People

            jochen@apache.org Jochen Wiedmann
            karnokd David Karnok
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: