Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ERROR TEMPLATE] Java - Illegal Start of type #6

Open
4 tasks
nedpals opened this issue Nov 3, 2023 · 0 comments
Open
4 tasks

[ERROR TEMPLATE] Java - Illegal Start of type #6

nedpals opened this issue Nov 3, 2023 · 0 comments

Comments

@nedpals
Copy link
Owner

nedpals commented Nov 3, 2023

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In Progress
Development

No branches or pull requests

1 participant