Uploaded image for project: 'JDO'
  1. JDO
  2. JDO-487

Pm.newInstance() fails when the parameter is an abstract class

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: JDO 2 maintenance release 1 (2.1)
    • Component/s: tck
    • Labels:
      None
    • Environment:
      jpox SNAPSHOT

      Description

      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(NewInstance.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.InstantiationExceptionConstructorAccessorImpl.newInstance(InstantiationExceptionConstructorAccessorImpl.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(NewInstance.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)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                andy Andy Jefferson
                Reporter:
                mcaisse Michelle Caisse
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: