Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [platform-releng-dev] Compiler warnings

In the nightly builds, we're seeing an "Unnecessary @SuppressWarnings("deprecation")" warning on org.eclipse.jdt.apt.tests.  The call it's warning about is definitely a deprecated method, and in my dev build if I remove the @SuppressWarnings, I get a warning about use of a deprecated method.
 
Are warnings about deprecation turned off for the test plug-ins in the releng build?
 
If so, perhaps we should also turn off the warnings about unnecessary @SuppressWarnings? 
 
This is probably not affecting many plug-ins yet, because annotations are a Java 5 feature and I guess many plug-ins have not moved to using Java 5.
 
I guess the alternative would be for me to turn off warnings about deprecation in the compiler settings for that project, but actually I'd rather leave them on if possible; they're useful from time to time.
 
Thanks,
 -walter


From: platform-releng-dev-bounces@xxxxxxxxxxx [mailto:platform-releng-dev-bounces@xxxxxxxxxxx] On Behalf Of Kim Moir
Sent: Wednesday, November 07, 2007 2:16 PM
To: Eclipse platform release engineering list.
Subject: Re: [platform-releng-dev] Compiler warnings


Compiler warnings for the test plugins are disabled for discouraged and forbidden. For all other plugins, the warnings are the default that the jdt core compiler provides.

The releng build runs using pde build and it doesn't know anything about the Java Builder settings in your project.   The manifest and build.properties can be tweaked to change the compilation environment that is used by pde build in the releng build.  See

http://wiki.eclipse.org/index.php/PDEBuild#Java_source_level_problems_during_Export

http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse.pde.doc.user/guide/tasks/pde_compilation_env.htm

Kim



"Walter Harley" <wharley@xxxxxxx>
Sent by: platform-releng-dev-bounces@xxxxxxxxxxx

11/06/2007 11:29 AM

Please respond to
"Eclipse platform release engineering list."        <platform-releng-dev@xxxxxxxxxxx>

To
"Eclipse platform release engineering list." <platform-releng-dev@xxxxxxxxxxx>
cc
Subject
[platform-releng-dev] Compiler warnings





With the new builder, a bunch of new compiler warnings have popped up
due to the new warning about unnecessary @SuppressWarnings.

This seems to be one of those "whack-a-mole" situations where it's hard
to make the warnings go away both on the local build and in the releng
build.  Some of the code in APT warns about unnecessary @SuppressWarning
in the releng build, but if I delete the @SuppressWarning, then it warns
about the warning I was trying to suppress in my local build.  

What are the compiler warning levels in the releng build currently
determined by?  Is it 100% default settings for workspace and no
per-project settings, or is there an override?

Thanks,
 -walter
_______________________________________________
platform-releng-dev mailing list
platform-releng-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-releng-dev


Back to the top