nedpals / errgoengine

Contextualized programming error analysis translation engine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[ERROR TEMPLATE] Java - NoClassDefError

nedpals opened this issue · comments

commented
Name Type Code Language
NoClassDefError Runtime Exception java.lang.NoClassDefError Java

Description

The Java Virtual Machine (JVM) cannot find the definition of a class at runtime.

Sample Code

// MyClass.java
public class MyClass {
    public static void main(String[] args) {
        // Attempting to create an instance of a non-existing class
        NonExistingClass obj = new NonExistingClass();
    }
}

Sample Error Message

template: "Java.NoClassDefError"
---
MyClass.java:5: error: cannot find symbol
        NonExistingClass obj = new NonExistingClass();
        ^
    symbol:   class NonExistingClass
    location: class MyClass
1 error

Implementation Checklist

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

Part of #18
See: #1, #47