Bug 105524 - VerifyError when using generics with autoboxing
Summary: VerifyError when using generics with autoboxing
Status: RESOLVED DUPLICATE of bug 101779
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 3.1.1   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-28 17:20 EDT by Kory Markevich CLA
Modified: 2005-07-28 18:19 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kory Markevich CLA 2005-07-28 17:20:04 EDT
The following code compiles fine but throws a VerifyError when run.  Javac dies
just trying to compile it.

class Wrapper< T >
{
    public T value;
}

public class Test
{
    public static void main( final String[ ] args )
    {
        final Wrapper< Integer > wrap = new Wrapper< Integer >( );
        wrap.value = 0;
        wrap.value = wrap.value + 1; // works
        wrap.value++; // throws VerifyError
        wrap.value += 1; // throws VerifyError
    }
}
Comment 1 Philipe Mulet CLA 2005-07-28 18:19:28 EDT
Cannot reproduce any longer with latest. Dup of bug 101779.
Added AutoboxingTest#test111

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