Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 412257 - [1.8][compiler]CCE in compilation of ReferenceExpression X<T>.Y<K> :: <type_args>new form
Summary: [1.8][compiler]CCE in compilation of ReferenceExpression X<T>.Y<K> :: <type_a...
Status: RESOLVED DUPLICATE of bug 410114
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 4.4   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: BETA J8   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-04 01:32 EDT by Manoj N Palat CLA
Modified: 2013-07-04 03:50 EDT (History)
2 users (show)

See Also:


Attachments
Test case to reproduce the issue (275 bytes, text/plain)
2013-07-04 01:32 EDT, Manoj N Palat CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Manoj N Palat CLA 2013-07-04 01:32:41 EDT
Created attachment 233063 [details]
Test case to reproduce the issue

The testcase compilation bails out with the following error:

Internal compiler error: java.lang.ClassCastException: org.eclipse.jdt.internal.compiler.lookup.ParameterizedTypeBinding cannot be cast to org.eclipse.jdt.internal.compiler.lookup.NestedTypeBinding at 
 org.eclipse.jdt.internal.compiler.ast.ReferenceExpression.generateCode(ReferenceExpression.java:119)

Note: the relevant code:
118:if (this.receiverType.isNestedType()) {
119:  NestedTypeBinding nestedType = (NestedTypeBinding) this.receiverType;
120:  ....
Comment 1 Srikanth Sankaran CLA 2013-07-04 02:00:29 EDT
See also https://bugs.eclipse.org/bugs/show_bug.cgi?id=410114
Comment 2 Jay Arthanareeswaran CLA 2013-07-04 03:50:40 EDT
I am working on a fix for bug 410114, which should address this one s well.

*** This bug has been marked as a duplicate of bug 410114 ***