Bug 42342 - IllegalAccessError when cloning array with 1.4 compliance
Summary: IllegalAccessError when cloning array with 1.4 compliance
Status: RESOLVED INVALID
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P3 blocker (vote)
Target Milestone: 3.0 M4   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-01 10:12 EDT by Ilja Preuss CLA
Modified: 2004-02-04 06:07 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 Ilja Preuss CLA 2003-09-01 10:12:29 EDT
The following testcase fails with an IllegalAccessError when compiled in 3.0M3 
with the compiler compliance level set to 1.4:

   public void testCloneArray() {
     String[] strings = new String[] { "1", "2" };
     String[] clones = (String[]) strings.clone();
     assertEquals(strings.length, clones.length);
   }
Comment 1 Philipe Mulet CLA 2003-09-01 12:54:42 EDT
Cannot reproduce, it works fine for me using 3.0M3. Can you please double check 
your steps ?
Comment 2 Philipe Mulet CLA 2003-09-02 02:20:00 EDT
Additionally, did the problem occur during compile-time or runtime ? If latter, 
then which runtime did you use ?
Comment 3 Philipe Mulet CLA 2003-09-02 04:57:06 EDT
Please reopen once requested information is available.
Comment 4 Ilja Preuss CLA 2003-09-02 05:19:14 EDT
It's actually a runtime problem, occuring under JDK 1-4-1_b21. Later versions 
don't seem to have the problem.

Sorry for the fuss...