Community
Participate
Working Groups
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); }
Cannot reproduce, it works fine for me using 3.0M3. Can you please double check your steps ?
Additionally, did the problem occur during compile-time or runtime ? If latter, then which runtime did you use ?
Please reopen once requested information is available.
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...