Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 433391

Summary: [eval] CodeSnippetSkeleton should not have a null superclass (probably)
Product: [Eclipse Project] JDT Reporter: Stephan Herrmann <stephan.herrmann>
Component: CoreAssignee: JDT-Core-Inbox <jdt-core-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: manoj.palat
Version: 4.4   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard: stalebug

Description Stephan Herrmann CLA 2014-04-24 07:17:40 EDT
The root cause of the NPE in bug 430441 was a class other than j.l.Object that has a null superclass.

The BinaryTypeBinding of that class was constructed from CodeSnippetSkeleton, which has this little landmine:

public char[] getSuperclassName() {
	return null;
}

Changing this to
  return "java/lang/Object";

would have fixed the NPE in said bug, and would rid us of one special case needing to be handled all over the place in the compiler (unless we find other causes for the same symptom ...).
Comment 1 Manoj N Palat CLA 2018-05-16 01:38:44 EDT
Bulk move out of 4.8
Comment 2 Eclipse Genie CLA 2020-05-06 17:34:35 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.