java.lang.UnsupportedOperationException: Empty import declarations have no name

GitHub | jojochuang | 6 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    dangling semicolon after import causes UnsupportedOperationException

    GitHub | 6 months ago | jojochuang
    java.lang.UnsupportedOperationException: Empty import declarations have no name

    Root Cause Analysis

    1. java.lang.UnsupportedOperationException

      Empty import declarations have no name

      at com.github.javaparser.ast.ImportDeclaration.getName()
    2. com.github.javaparser
      VoidVisitorAdapter.visit
      1. com.github.javaparser.ast.ImportDeclaration.getName(ImportDeclaration.java:117)
      2. com.github.javaparser.ast.visitor.VoidVisitorAdapter.visit(VoidVisitorAdapter.java:505)
      3. com.github.javaparser.ast.ImportDeclaration.accept(ImportDeclaration.java:106)
      4. com.github.javaparser.ast.visitor.VoidVisitorAdapter.visit(VoidVisitorAdapter.java:291)
      4 frames