nedpals/errgoengine

[ERROR TEMPLATE] Java - Illegal Start of type

Opened this issue · 0 comments

Name Type Code Language
Illegal Start of type Compile-time Error java.lang.IllegalStartTypeError Java

Description

The code has an illegal start for a specific type (class, interface, etc.).

Sample Code

// https://stackoverflow.com/questions/2448768/why-does-the-program-give-illegal-start-of-type-error
public class Rand {
    public static Rand searchCount() {
        Rand countA = new Rand() ;
        }
        return countA ;   
    }
}

Sample Error Message

Rand.java:11: error: illegal start of type
        return countA ;
        ^
1 error

Implementation Checklist

  • Implemented analysis
  • Implemented explanation translation
  • Implemented bug fix generation
  • Add tests