Bug 12380 - AST/DOM: resolveTypeBinding() on the second operand of a instanceof expression return null
Summary: AST/DOM: resolveTypeBinding() on the second operand of a instanceof expressio...
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 1.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 2.0 M5   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-03-27 14:51 EST by Luc Bourlier CLA
Modified: 2002-03-27 17:15 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Luc Bourlier CLA 2002-03-27 14:51:49 EST
with the following code, the call of resolveTypeBinding() on the node Name which
correspond to "java.io.Serializable" return null.

class foo {
  boolean bar() {
    return "abc" instanceof java.io.Serializable;
  }
}
Comment 1 Olivier Thomann CLA 2002-03-27 16:40:01 EST
Reproduced. I am working on it.
Comment 2 Olivier Thomann CLA 2002-03-27 17:09:26 EST
Regression tests added.
Fixed and released in HEAD.