Summary: | ast: exception on creation | ||||||
---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Adam Kiezun <akiezun> | ||||
Component: | Core | Assignee: | Olivier Thomann <Olivier_Thomann> | ||||
Status: | RESOLVED FIXED | QA Contact: | |||||
Severity: | normal | ||||||
Priority: | P3 | ||||||
Version: | 2.0 | ||||||
Target Milestone: | 2.0 M6 | ||||||
Hardware: | PC | ||||||
OS: | Windows 2000 | ||||||
Whiteboard: | |||||||
Attachments: |
|
Description
Adam Kiezun
2002-04-23 09:32:25 EDT
Created attachment 686 [details]
the file
The problem comes from the expression "result instanceof byte[]". The casting to a byte[] is not properly converted. It should be converted to a Type object, but this is not a possible right operand of a InfixExpression. I need to talk with Jim, but it seems that we have to introduce a new type of node: InstanceOfExpression. Previously we used an InfixExpression to convert an instanceof expression, but this is not possible anymore. The right operand of an instanceof expression is a referenceType and not an Expression. A new type of node InstanceofExpression has been added. We left the operator INSTANCE_OF on InfixExpression for now, but it is deprecated. Please update your code asap. Fixed and released in HEAD. |