You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Pavel Pervov (JIRA)" <ji...@apache.org> on 2006/11/05 22:49:17 UTC

[jira] Commented: (HARMONY-2074) [drlvm] java.lang.IllegalAccessError - contant pool entry problem - in swing unit test

    [ http://issues.apache.org/jira/browse/HARMONY-2074?page=comments#action_12447328 ] 
            
Pavel Pervov commented on HARMONY-2074:
---------------------------------------

It is pretty straightforward. getColorFromModel is protected in AbstractColorChooserPanel and can be only accessed by classes in the same runtime package of by relatives.
The second is not our case so putting test class into bootclasspath will solve the problem.

So, specifying -Xbootclasspath/a: instead of -cp is the solution.

> [drlvm] java.lang.IllegalAccessError - contant pool entry problem - in swing unit test
> --------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2074
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2074
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Ubuntu 6 - r471468
>            Reporter: Geir Magnusson Jr
>
> geir@t42-laptop:~/dev/apache/harmony/enhanced/trunk/working_vm/build/deploy/jre/bin$ ./java -version
> Apache Harmony Launcher : (c) Copyright 1991, 2006 The Apache Software Foundation or its licensors, as applicable.
> java version "1.5.0"
> pre-alpha : not complete or compatible
> svn = r471468, (Nov  5 2006), Linux/ia32/gcc 3.4.6, debug build
> http://incubator.apache.org/harmony
> geir@t42-laptop:~/dev/apache/harmony/enhanced/trunk/working_vm/build/deploy/jre/bin$ ./java -Xem:opt -cp $classlib/modules/swing/bin/test:junit.jar:$classlib/deploy/build/test/support.jar junit.textui.TestRunner javax.swing.colorchooser.AbstractColorChooserPanelTest
> ..E
> Time: 12.017
> There was 1 error:
> 1) testInstallUninstallChooserPanel(javax.swing.colorchooser.AbstractColorChooserPanelTest)java.lang.IllegalAccessError:javax/swing/colorchooser/AbstractColorChooserPanel.getColorFromModel()Ljava/awt/Color; while resolving constant pool entry at index 73 in class javax/swing/colorchooser/AbstractColorChooserPanelTest
>         at java.lang.reflect.VMReflection.invokeMethod(Native Method)
>         at javax.swing.BasicSwingTestCase.runBareSuper(BasicSwingTestCase.java:117)
>         at javax.swing.BasicSwingTestCase.runBareImpl(BasicSwingTestCase.java)
>         at javax.swing.BasicSwingTestCase$1.run(BasicSwingTestCase.java)
>         at java.lang.Thread.run(Unknown Source)
> FAILURES!!!
> Tests run: 2,  Failures: 0,  Errors: 1
> geir@t42-laptop:~/dev/apache/harmony/enhanced/trunk/working_vm/build/deploy/jre/bin$

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira