I haven't seen any response to this so I'll try one more time.
Scott
-----Original Message-----
From: Leschke Scott-QA2775
Sent: Thursday, February 20, 2003 10:03 AM
To: '[EMAIL PROTECTED]'
Subject: Base Classes and java.lang.IllegalAccessException
We're using Axis 1.0 and are having a problem with serialization using BeanSerializer.
We have a number of classes that are public and have public default constructors but
they extend abstract classes that have package level visibility. For example:
abstract class A
{
protected A()
{}
}
public class B
extends A
{
public B()
{
super();
}
}
When BeanSerializer attempts to serialize B, it throws
java.lang.IllegalAccessException because A is not public. Changing the visibility of A
to public corrects the problem. Is this an artifact of Java reflection? An Axis bug?
Thanks,
Scott