[
https://jira.jboss.org/jira/browse/JASSIST-113?page=com.atlassian.jira.pl...
]
Andrew Dinn closed JASSIST-113.
-------------------------------
Resolution: Done
This is a regression introduced when fixing JASSIST-42 and JASSIST-104. When the super
class is null the old code located the generated proxy in the same package as the first
interface. The fixes were locating the proxy in a package derived from the substituted
default super java.lang.Object. This has been corrected to revert to the old behaviour. A
unit test has been included to verify that the test case above now works.
Possible regression in ProxyFactory.createClass() when super
interface is non-public
------------------------------------------------------------------------------------
Key: JASSIST-113
URL:
https://jira.jboss.org/jira/browse/JASSIST-113
Project: Javassist
Issue Type: Bug
Reporter: Marius Bogoevici
Assignee: Shigeru Chiba
Fix For: 3.12.0.GA
This is an issue encountered with 3.12.0-SNAPSHOT. A test which consists of these two
classes:
interface Bear
{
void hibernate();
}
public class NonpublicInterfaceTest extends TestCase
{
public void testProxyFactoryWithNonPublicInterface()
{
ProxyFactory proxyFactory = new ProxyFactory();
proxyFactory.setInterfaces(new Class[]{Bear.class});
proxyFactory.createClass();
}
}
fails with [1]. Similar code used to work properly with 3.11.0.GA, so this may be a
regression.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira