Apache JDO Project - [jira] Resolved: (JDO-487) Pm.newInstance() fails when the

This is Interesting: Free IT Magazines  
Home > Archive > Apache JDO Project > November 2007 > [jira] Resolved: (JDO-487) Pm.newInstance() fails when the





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author [jira] Resolved: (JDO-487) Pm.newInstance() fails when the
Andy Jefferson (JIRA)

2007-11-14, 1:11 am


[ https://issues.apache.org/jira/brow...ls:all-tabpanel ]

Andy Jefferson resolved JDO-487.
--------------------------------

Resolution: Fixed
Fix Version/s: JDO 2 maintenance release 1

This passes with JPOX CVS HEAD, and using ASM as the bytecode enhancer

> Pm.newInstance() fails when the parameter is an abstract class
> --------------------------------------------------------------
>
> Key: JDO-487
> URL: https://issues.apache.org/jira/browse/JDO-487
> Project: JDO
> Issue Type: Bug
> Components: tck2
> Affects Versions: JDO 2 maintenance release 1
> Environment: jpox SNAPSHOT
> Reporter: Michelle Caisse
> Assignee: Andy Jefferson
> Fix For: JDO 2 maintenance release 1
>
>
> org.apache.jdo.tck.api.persistencemanager.NewInstance fails attempting to instantiate an abstract class. This test is just a stub of a future test (see JDO-453). To reproduce, run
> maven -Djdo.tck.cfglist=pm.conf runtck.jdori
> [java] 1) testNewInstance(org.apache.jdo.tck.api.persistencemanager.NewInstance)javax.jdo.JDOUserException: java.lang.InstantiationException
> [java] at org.jpox.enhancer.ImplementationCreatorImpl.newInstance(ImplementationCreatorImpl.java:153)
> [java] at org.jpox.ObjectManagerImpl.newInstance(ObjectManagerImpl.java:3073)
> [java] at org.jpox.AbstractPersistenceManager.newInstance(AbstractPersistenceManager.java:1413)
> [java] at org.apache.jdo.tck.api.persistencemanager.NewInstance. runTestNewInstanceAbstractClass(NewInsta
nce.java:91)
> [java] at org.apache.jdo.tck.api.persistencemanager.NewInstance.testNewInstance(NewInstance.java:65)
> [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> [java] at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:254)
> [java] at org.apache.jdo.tck.util.BatchTestRunner.doRun(BatchTestRunner.java:108)
> [java] at org.apache.jdo.tck.util.BatchTestRunner.start(BatchTestRunner.java:148)
> [java] at org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRunner.java:123)
> [java] NestedThrowablesStackTrace:
> [java] java.lang.InstantiationException
> [java] at sun.reflect. InstantiationExceptionConstructorAccesso
rImpl. newInstance(InstantiationExceptionConstr
uctorAccessorImpl.java:30)
> [java] at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
> [java] at java.lang.Class.newInstance0(Class.java:350)
> [java] at java.lang.Class.newInstance(Class.java:303)
> [java] at org.jpox.enhancer.ImplementationCreatorImpl.newInstance(ImplementationCreatorImpl.java:123)
> [java] at org.jpox.ObjectManagerImpl.newInstance(ObjectManagerImpl.java:3073)
> [java] at org.jpox.AbstractPersistenceManager.newInstance(AbstractPersistenceManager.java:1413)
> [java] at org.apache.jdo.tck.api.persistencemanager.NewInstance. runTestNewInstanceAbstractClass(NewInsta
nce.java:91)
> [java] at org.apache.jdo.tck.api.persistencemanager.NewInstance.testNewInstance(NewInstance.java:65)
> [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> [java] at org.apache.jdo.tck.JDO_Test.runBare(JDO_Test.java:254)
> [java] at org.apache.jdo.tck.util.BatchTestRunner.doRun(BatchTestRunner.java:108)
> [java] at org.apache.jdo.tck.util.BatchTestRunner.start(BatchTestRunner.java:148)
> [java] at org.apache.jdo.tck.util.BatchTestRunner.main(BatchTestRunner.java:123)


--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com