Bug 74066 - [1.5] NPE in MessageSend.computeConversion
Summary: [1.5] NPE in MessageSend.computeConversion
Status: VERIFIED DUPLICATE of bug 74514
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 3.1 M2   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-16 10:33 EDT by Johan Walles CLA
Modified: 2004-09-24 06:35 EDT (History)
0 users

See Also:


Attachments
Log entries from when the problems started (27.20 KB, text/plain)
2004-09-16 10:35 EDT, Johan Walles CLA
no flags Details
Repro case (9.08 KB, text/plain)
2004-09-17 08:41 EDT, Johan Walles CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Johan Walles CLA 2004-09-16 10:33:37 EDT
This is with 3.1M1.

While editing 1.5 source code I got an error message saying that an "Exception
occurred during problem detection".  Then I got several "An internal error
occurred during: "Java AST creation"".  Will attach the relevant parts of the
log file.

I'm unforturnately unable to provide the source code I was editing.
Comment 1 Johan Walles CLA 2004-09-16 10:35:52 EDT
Created attachment 14575 [details]
Log entries from when the problems started
Comment 2 Olivier Thomann CLA 2004-09-16 11:31:15 EDT
It would at least help a lot if you could extract a simple test case from the if
statement you are writing.
You must have a method invocation in the condition of your if statement.

Thanks.
Comment 3 Johan Walles CLA 2004-09-17 05:17:46 EDT
Extracting a test case is somewhat problematic unforturnately.  When this
started happening, Eclipse started popping up a dialog about once a second with
the latest instance of this (repetitive) exception, and I wasn't able to save my
buffer because of this problem.

So now I'm back to where I was before I started editing, and I'm not sure if
I'll run into the same thing again.  But if I do I'll try to extract the method
in which I ran into the problem and post it here.
Comment 4 Johan Walles CLA 2004-09-17 08:41:36 EDT
Created attachment 14609 [details]
Repro case

This is the java source code that is causing trouble.  It's kind of
intermittent, but it happens when I'm editing the last method
(willWantPairStorage).	I'm editing on line 285, which is the line after the
comment saying "// forget about it".

If I put the cursor at the end of that line (after "...groupName)"), add one
closing parenthesis and then press the left arrow key this starts happening.
Comment 5 Philipe Mulet CLA 2004-09-22 09:34:31 EDT
74514 has simpler testcase (less dependencies on missing types).
Was able to obtain the NPE without the fix on this testcase though.

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