| Summary: | [1.8][compiler] Type annotations on redundant casts dropped. | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Srikanth Sankaran <srikanth_sankaran> |
| Component: | Core | Assignee: | Srikanth Sankaran <srikanth_sankaran> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | aclement |
| Version: | 4.3 | ||
| Target Milestone: | BETA J8 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
| Bug Depends on: | |||
| Bug Blocks: | 409235 | ||
|
Description
Srikanth Sankaran
Andy, thanks for following up. I have a partial implementation - the simple cases work but generic casts are the problem. Before I can finish it I'm waiting on confirmation of a spec query on jsr308-discuss: https://groups.google.com/forum/?fromgroups#!topic/jsr308-discuss/_oa82wxTKpc (In reply to comment #2) > I have a partial implementation - the simple cases work but generic casts > are the problem. Before I can finish it I'm waiting on confirmation of a > spec query on jsr308-discuss: > > https://groups.google.com/forum/?fromgroups#!topic/jsr308-discuss/_oa82wxTKpc Andy, I would be happy with a solution that simply always emits a runtime cast if the cast carries an annotation. I do not believe it is a big deal to emit a cast in this situations. We can always raise a follow up defect to implement the fuller solution and tackle it at leisure. What do you think ? Yes, I was coming to the same conclusion. (In reply to comment #4) > Yes, I was coming to the same conclusion. Great, in that case do you want to propose a patch - org.eclipse.jdt.internal.compiler.ast.CastExpression.tagAsNeedCheckCast() should be useful it looks like. If you are very busy this week otherwise, I can wrap this up. I am keen to drive down the open issues count for 308. Released via http://git.eclipse.org/c/jdt/eclipse.jdt.core.git/commit/?h=BETA_JAVA8&id=49894ec43e425d82d6841fb37405b9e39799b63c Thanks for getting to this Srikanth, sorry I didn't manage to find the time. |