Return-Path: X-Original-To: apmail-db-derby-dev-archive@www.apache.org Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1AFC4D920 for ; Wed, 11 Jul 2012 03:19:44 +0000 (UTC) Received: (qmail 73880 invoked by uid 500); 11 Jul 2012 03:19:43 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 73265 invoked by uid 500); 11 Jul 2012 03:19:41 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 73102 invoked by uid 99); 11 Jul 2012 03:19:38 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Jul 2012 03:19:38 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 8EE7F142863 for ; Wed, 11 Jul 2012 03:19:36 +0000 (UTC) Date: Wed, 11 Jul 2012 03:19:36 +0000 (UTC) From: "Mohamed Nufail (JIRA)" To: derby-dev@db.apache.org Message-ID: <364594623.33471.1341976776587.JavaMail.jiratomcat@issues-vm> In-Reply-To: <873571811.20309.1341768638411.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Commented] (DERBY-5851) Inconsistent code coverage shown for LogicalPreparedStatement40 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DERBY-5851?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13411200#comment-13411200 ] Mohamed Nufail commented on DERBY-5851: --------------------------------------- I also tried the same thing. But I seem to have only the instrumented derbyrun.jar in my path. My output is below. [junit] Executing 'java' with arguments: [junit] '-Dderby.dummy.prop=X' [junit] '-Xmx512m' [junit] '-Dderby.tests.jacoco.agent=-Dderby.dummy.prop=X' [junit] '-Demma.verbosity.level=silent' [junit] '-classpath' [junit] '/home/nufail/dev/src/derby/tools/java/emma.jar:/home/nufail/dev/src/derby/jars/sane/derbyTesting.jar:/home/nufail/dev/src/derby/jars/emma/lib/derbyrun.jar:/home/nufail/dev/src/derby/tools/java/junit.jar:/usr/local/lib/apache-ant-1.8.3/lib/ant-launcher.jar:/usr/local/lib/apache-ant-1.8.3/lib/ant.jar:/usr/local/lib/apache-ant-1.8.3/lib/ant-junit.jar:/usr/local/lib/apache-ant-1.8.3/lib/ant-junit4.jar' [junit] 'org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner' [junit] 'org.apache.derbyTesting.functionTests.tests.jdbc4.PreparedStatementTest' > Inconsistent code coverage shown for LogicalPreparedStatement40 > --------------------------------------------------------------- > > Key: DERBY-5851 > URL: https://issues.apache.org/jira/browse/DERBY-5851 > Project: Derby > Issue Type: Bug > Reporter: Mohamed Nufail > Assignee: Mohamed Nufail > Priority: Minor > Attachments: derby-5851-CPdecorator.patch > > > I tried running org.apache.derbyTesting.functionTests.tests.jdbc4.PreparedStatementTest with a connectionCPDecorator in a JDBC4 environment. So this should actually run the test with LogicalPreparedStatement40 statements. > But in code coverage report methods such as setNClob show no coverage in LogicalPreparedStatement40 class. But in PreparedStatement40 class all these methods are shown as covered. Actually those method calls should go to PreparedStatement40 through LogicalPreparedStatement40. But it is not shown in emma code coverage report. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira