Bug 366138 - While there have been several reports with similar titles, the descriptions are different
Summary: While there have been several reports with similar titles, the descriptions a...
Status: VERIFIED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.8   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 4.3 M4   Edit
Assignee: Stephan Herrmann CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2011-12-09 01:46 EST by Larry Johnson CLA
Modified: 2012-12-10 04:12 EST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Larry Johnson CLA 2011-12-09 01:46:07 EST
Build Identifier: Another Inconsistent StackMap

I tried to develop a simple test case but could not. The situation that I have is reproducible but it references too many things to make it feasible to send as an example
The problem appears to be in the number of allowed global class variables permitted. In the problem class, there are about 60 global variables that include String, List, and many user defined classes. I build the code in Eclipse but execute the code outside of Eclipse. At the critical stage where the program is still working (no stackmap problem), if I add one more varialbe of type String, List, or a user defined class, the error occurs. I found that for the particular class, let us all it classX. It turns out that I have about 10 of these class instantiations. If instead of making instantiations of the form "classX clsA=null, clsB=null;" and so on, I make "classX[] clsX;" then the
problem goes away. I seem to be able to choose any value for the size of the array of classX. Thus my program now works and the only difference is that I use an array index value instead of a separate name for each classX instantiation.
It is not clear to me if this is an underlying problem of the other bug reports which have been filed. I made a simple test case with 88 separately named String variables, but I did not encounter the bug. If I find a simple test case I will send it. In the mean time, I thought this work around might be useful.

I set priority at "Normal" if the work around works. If the work around does not work for someone, the problem is devastating since development cannot continue.

Reproducible: Always

Steps to Reproduce:
1.Program that is on the edge -- near failure point
2.Add "String x;" and program will fail: Inconsistent stackmap ...
3.
Comment 1 Ayushman Jain CLA 2011-12-09 02:15:54 EST
Can you please mention the build id clearly? Look for it in Help>About>Installation details>Plugins> org.eclipse.jdt.core and mention the plugin id you see (eg: 3.8.0.v20111202-0800).

Also adding the needinfo flag because there's nothing much we can do here without a reproducible test case. If you can attach your whole project here it will be great.
Comment 2 Olivier Thomann CLA 2011-12-09 09:26:37 EST
Many problems with inconsistent stack map have been fixed lately. So you can try you test case with either the coming 3.8(4.2)M4 or any of the latest M-build (towards 3.7.2).
Comment 3 Srikanth Sankaran CLA 2012-01-11 03:40:16 EST
Larry, have you been able to check this with a more recent build ?
Comment 4 Stephan Herrmann CLA 2012-12-04 04:10:05 EST
After one year's time this report looks stale to me.
Feel free to re-open when you have more info on how to reproduce.

Note, that even just the class file that triggers the verify error could perhaps contain sufficient info.
Comment 5 Srikanth Sankaran CLA 2012-12-10 04:12:59 EST
Verified for 4.3 M4