Bug 81670 - [compiler] NPE while compiling annotated class
Summary: [compiler] NPE while compiling annotated class
Status: RESOLVED DUPLICATE of bug 81825
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-20 14:18 EST by Carl McConnell CLA
Modified: 2005-01-04 11:44 EST (History)
0 users

See Also:


Attachments
Stack trace (4.31 KB, text/plain)
2004-12-20 14:19 EST, Carl McConnell CLA
no flags Details
Compilation unit (7.75 KB, text/plain)
2004-12-20 14:21 EST, Carl McConnell CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Carl McConnell CLA 2004-12-20 14:18:40 EST
The compiler produced the attached NPE while compiling the attached file.
The annotation at the top of the stack (receiving the resolveType(...) 
message) was:
@Jpf.Catch(method = "handlePageFlowException",type = PageFlowException.class)

The values of the variables were:
this= NormalAnnotation  (id=224)
scope= MethodScope  (id=253)
typeBinding= BinaryTypeBinding  (id=259)
annotationType= BinaryTypeBinding  (id=259)
methods= MethodBinding[5]  (id=265)
valuePairs= MemberValuePair[2]  (id=267)
	[0]= MemberValuePair  (id=273)
	[1]= MemberValuePair  (id=370)
valueAttribute= null
usedValuePairs= MemberValuePair[2]  (id=269)
	[0]= null
	[1]= null
pairsLength= 2
i= 1
requiredLength= 5
method= MethodBinding  (id=270)
selector= char[6]  (id=272)
foundValue= true
j= 0
valuePair= MemberValuePair  (id=273)
memberName= char[6]  (id=274)
foundDuplicate= false
k= 1
Comment 1 Carl McConnell CLA 2004-12-20 14:19:27 EST
Created attachment 16773 [details]
Stack trace
Comment 2 Carl McConnell CLA 2004-12-20 14:21:03 EST
Created attachment 16774 [details]
Compilation unit
Comment 3 Carl McConnell CLA 2004-12-20 14:23:21 EST
This was in 3.1 M4, by the way.
Comment 4 Jerome Lanneluc CLA 2005-01-04 07:45:12 EST
Unfortunately the test case is not complete: we cannot reproduce the problem
without the org.apache.beehive.* packages and the superclass SharedFlowController
Comment 5 Olivier Thomann CLA 2005-01-04 11:44:26 EST

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