You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Rick Hillegas (JIRA)" <ji...@apache.org> on 2010/11/11 20:39:15 UTC

[jira] Created: (DERBY-4900) Deprecation warning emitted by ClassSizeCrawler during build

Deprecation warning emitted by ClassSizeCrawler during build
------------------------------------------------------------

                 Key: DERBY-4900
                 URL: https://issues.apache.org/jira/browse/DERBY-4900
             Project: Derby
          Issue Type: Improvement
          Components: Build tools
    Affects Versions: 10.7.1.0
         Environment: Mac OSX 10.5.8, Java 6 environment
            Reporter: Rick Hillegas


When I run "ant -quiet all" I see the following diagnostic on my Mac:

     [java] [Deprecated] Xalan: org.apache.xml.utils.PrefixResolver

The diagnostic is coming from the ClassSizeCrawler program (demonstrated by a patch which I will attach). I am a bit perplexed:

1) The [java] tag indicates that the diagnostic is coming from the the ClassSizeCrawler program as it churns.

2) But the [Deprecated] tag indicates a compiler warning appropriate to running the <javac> task, not the <java> task.


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


[jira] Commented: (DERBY-4900) Deprecation warning emitted by ClassSizeCrawler during build

Posted by "Knut Anders Hatlen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-4900?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12931195#action_12931195 ] 

Knut Anders Hatlen commented on DERBY-4900:
-------------------------------------------

I don't see this warning. Just a guess, but does your JDK by any chance contain some version of Xalan that accidentally gets pulled into compile.classpath by PropertySetter?

> Deprecation warning emitted by ClassSizeCrawler during build
> ------------------------------------------------------------
>
>                 Key: DERBY-4900
>                 URL: https://issues.apache.org/jira/browse/DERBY-4900
>             Project: Derby
>          Issue Type: Improvement
>          Components: Build tools
>    Affects Versions: 10.7.1.0
>         Environment: Mac OSX 10.5.8, Java 6 environment
>            Reporter: Rick Hillegas
>         Attachments: z.diff
>
>
> When I run "ant -quiet all" I see the following diagnostic on my Mac:
>      [java] [Deprecated] Xalan: org.apache.xml.utils.PrefixResolver
> The diagnostic is coming from the ClassSizeCrawler program (demonstrated by a patch which I will attach). I am a bit perplexed:
> 1) The [java] tag indicates that the diagnostic is coming from the the ClassSizeCrawler program as it churns.
> 2) But the [Deprecated] tag indicates a compiler warning appropriate to running the <javac> task, not the <java> task.

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


[jira] Updated: (DERBY-4900) Deprecation warning emitted by ClassSizeCrawler during build

Posted by "Rick Hillegas (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-4900?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rick Hillegas updated DERBY-4900:
---------------------------------

    Attachment: z.diff

Attaching z.diff. This patch demonstrates that the diagnostic is coming from the <java> invocation of ClassSizeCrawler in the class_size_catalog target. This is the minimal test case which produces this diagnostic: you have to tell ClassSizeCrawler to process the org.apache.derby.iapi.types package. That makes some sense because that is the package which contains the XML datatype which is, in turn, our path into the Xalan library.

Theories welcomed!

> Deprecation warning emitted by ClassSizeCrawler during build
> ------------------------------------------------------------
>
>                 Key: DERBY-4900
>                 URL: https://issues.apache.org/jira/browse/DERBY-4900
>             Project: Derby
>          Issue Type: Improvement
>          Components: Build tools
>    Affects Versions: 10.7.1.0
>         Environment: Mac OSX 10.5.8, Java 6 environment
>            Reporter: Rick Hillegas
>         Attachments: z.diff
>
>
> When I run "ant -quiet all" I see the following diagnostic on my Mac:
>      [java] [Deprecated] Xalan: org.apache.xml.utils.PrefixResolver
> The diagnostic is coming from the ClassSizeCrawler program (demonstrated by a patch which I will attach). I am a bit perplexed:
> 1) The [java] tag indicates that the diagnostic is coming from the the ClassSizeCrawler program as it churns.
> 2) But the [Deprecated] tag indicates a compiler warning appropriate to running the <javac> task, not the <java> task.

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


[jira] Closed: (DERBY-4900) Deprecation warning emitted by ClassSizeCrawler during build

Posted by "Rick Hillegas (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-4900?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rick Hillegas closed DERBY-4900.
--------------------------------

    Resolution: Won't Fix

Thanks, Knut. I'm going to close this issue as a Mac only issue which I'm not going to pursue any further.

> Deprecation warning emitted by ClassSizeCrawler during build
> ------------------------------------------------------------
>
>                 Key: DERBY-4900
>                 URL: https://issues.apache.org/jira/browse/DERBY-4900
>             Project: Derby
>          Issue Type: Improvement
>          Components: Build tools
>    Affects Versions: 10.7.1.0
>         Environment: Mac OSX 10.5.8, Java 6 environment
>            Reporter: Rick Hillegas
>         Attachments: z.diff
>
>
> When I run "ant -quiet all" I see the following diagnostic on my Mac:
>      [java] [Deprecated] Xalan: org.apache.xml.utils.PrefixResolver
> The diagnostic is coming from the ClassSizeCrawler program (demonstrated by a patch which I will attach). I am a bit perplexed:
> 1) The [java] tag indicates that the diagnostic is coming from the the ClassSizeCrawler program as it churns.
> 2) But the [Deprecated] tag indicates a compiler warning appropriate to running the <javac> task, not the <java> task.

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


[jira] Commented: (DERBY-4900) Deprecation warning emitted by ClassSizeCrawler during build

Posted by "Knut Anders Hatlen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-4900?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12931216#action_12931216 ] 

Knut Anders Hatlen commented on DERBY-4900:
-------------------------------------------

A quick google search suggests that this is a common problem on Mac OS X: http://www.google.com/search?q=%22[Deprecated]+Xalan%3A+org.apache.xml%22

> Deprecation warning emitted by ClassSizeCrawler during build
> ------------------------------------------------------------
>
>                 Key: DERBY-4900
>                 URL: https://issues.apache.org/jira/browse/DERBY-4900
>             Project: Derby
>          Issue Type: Improvement
>          Components: Build tools
>    Affects Versions: 10.7.1.0
>         Environment: Mac OSX 10.5.8, Java 6 environment
>            Reporter: Rick Hillegas
>         Attachments: z.diff
>
>
> When I run "ant -quiet all" I see the following diagnostic on my Mac:
>      [java] [Deprecated] Xalan: org.apache.xml.utils.PrefixResolver
> The diagnostic is coming from the ClassSizeCrawler program (demonstrated by a patch which I will attach). I am a bit perplexed:
> 1) The [java] tag indicates that the diagnostic is coming from the the ClassSizeCrawler program as it churns.
> 2) But the [Deprecated] tag indicates a compiler warning appropriate to running the <javac> task, not the <java> task.

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


[jira] Commented: (DERBY-4900) Deprecation warning emitted by ClassSizeCrawler during build

Posted by "Rick Hillegas (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-4900?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12931188#action_12931188 ] 

Rick Hillegas commented on DERBY-4900:
--------------------------------------

Some more information:

1) I do not see this deprecation warning if I use the Java 5 compiler rather than the Java 6 compiler. However, then I see warnings from [javac] rather than from [java]:

    [javac] Note: /Users/rh161140/derby/mainline/trunk/java/engine/org/apache/derby/jdbc/EmbeddedDriver.java uses or overrides a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: /Users/rh161140/derby/mainline/trunk/java/testing/org/apache/derbyTesting/functionTests/util/ManyMethods.java uses or overrides a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: /Users/rh161140/derby/mainline/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/ParameterMappingTest.java uses or overrides a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.

2) I see a similar warning just running a JUnit test outside of ant under Java 6. When I run this script...

export CLASSPATH=/Users/rh161140/derby/mainline/trunk/tools/java/junit.jar:/Users/rh161140/derby/mainline/trunk/jars/sane/derby.jar:/Users/rh161140/derby/mainline/trunk/jars/sane/derbyTesting.jar

java junit.textui.TestRunner org.apache.derbyTesting.functionTests.tests.lang.SequenceTest

...I see this warning:

[Deprecated] Xalan: org.apache.xpath.XPath

I don't see that warning if I run the same experiment under Java 5.


> Deprecation warning emitted by ClassSizeCrawler during build
> ------------------------------------------------------------
>
>                 Key: DERBY-4900
>                 URL: https://issues.apache.org/jira/browse/DERBY-4900
>             Project: Derby
>          Issue Type: Improvement
>          Components: Build tools
>    Affects Versions: 10.7.1.0
>         Environment: Mac OSX 10.5.8, Java 6 environment
>            Reporter: Rick Hillegas
>         Attachments: z.diff
>
>
> When I run "ant -quiet all" I see the following diagnostic on my Mac:
>      [java] [Deprecated] Xalan: org.apache.xml.utils.PrefixResolver
> The diagnostic is coming from the ClassSizeCrawler program (demonstrated by a patch which I will attach). I am a bit perplexed:
> 1) The [java] tag indicates that the diagnostic is coming from the the ClassSizeCrawler program as it churns.
> 2) But the [Deprecated] tag indicates a compiler warning appropriate to running the <javac> task, not the <java> task.

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