Bug 292428 - Internal compiler error: NullPointerException at org.eclipse.jdt.internal.compiler.ast.CastExpression.checkUnsafeCast(CastExpression.java:333)
Summary: Internal compiler error: NullPointerException at org.eclipse.jdt.internal.com...
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.6   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 3.6 M3   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-15 12:38 EDT by David Green CLA
Modified: 2009-10-27 07:41 EDT (History)
3 users (show)

See Also:


Attachments
file that cannot be compiled (7.01 KB, text/plain)
2009-10-15 12:42 EDT, David Green CLA
no flags Details
Proposed fix + regression test (22.42 KB, patch)
2009-10-15 14:36 EDT, Olivier Thomann CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Green CLA 2009-10-15 12:38:02 EDT
JDT fails to compile a Java source file that was previously working:

Java Problem: Internal compiler error: java.lang.NullPointerException at org.eclipse.jdt.internal.compiler.ast.CastExpression.checkUnsafeCast(CastExpression.java:333)

Eclipse:

Version: 3.6.0
Build id: I20091006-0800

JDT:

Version: 3.6.0.v20091006-0800-7u8KFPaFKaU0nio8z0EHoceh1
Build id: I20091006-0800
Comment 1 David Green CLA 2009-10-15 12:42:59 EDT
Created attachment 149658 [details]
file that cannot be compiled
Comment 2 Olivier Thomann CLA 2009-10-15 13:15:33 EDT
This works with Eclipse 3.5.1 and 3.5.0.
So it seems to be broken only in HEAD.
Comment 3 Olivier Thomann CLA 2009-10-15 14:36:23 EDT
Created attachment 149670 [details]
Proposed fix + regression test
Comment 4 Olivier Thomann CLA 2009-10-15 14:36:40 EDT
Kent, please review.
Comment 5 Kent Johnson CLA 2009-10-15 14:45:02 EDT
change is fine
Comment 6 Olivier Thomann CLA 2009-10-16 11:18:31 EDT
Released for 3.6M3.
Regression test added in:
org.eclipse.jdt.core.tests.compiler.regression.GenericTypeTest#test1456
Comment 7 David Green CLA 2009-10-16 12:04:30 EDT
Thanks for the fast response!
Comment 8 Ayushman Jain CLA 2009-10-27 01:13:27 EDT
Verified for 3.6M3 using build I20091025-2000