[ 
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.

Reply via email to