Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

Task #10924 (new)

Opened 11 years ago

Last modified 8 years ago

RFE: deprecation warnings

Reported by: mtbcarroll Owned by:
Priority: minor Milestone: Unscheduled
Component: General Version: OMERO-5.2.0
Keywords: n.a. Cc: omero-team@…
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: n.a.
Sprint: n.a.

Description

The OMERO 5.x builds are full of deprecation warnings such as,

/Users/mark/src/openmicroscopy/components/blitz/generated/omero/api/_GatewayTie.java:173: warning: [deprecation] getPixels(long,Current) in _GatewayOperations has been deprecated
    getPixels(long pixelsId, Ice.Current __current)
    ^

and

DEPRECATED: 'ivy.conf.file' is deprecated, use 'ivy.settings.file' instead

These rather obscure the more illuminating messages hidden among them all and may often be pointing to matters that we ought to actually be fixing.

It would be wonderful if we could review these warnings and figure out what's going on and, where possible, make corrections or improvements accordingly, reserving tactics like @SuppressWarnings("deprecation") to being a thoughtfully applied last resort.

Change History (4)

comment:1 Changed 11 years ago by ajpatterson

As a short term hack you can filter the output using sed:

./build.py | sed '/deprecation/{N;N;d;}'

comment:2 Changed 11 years ago by jamoore

  • Owner jamoore deleted

Removing me as owner. *Very* interested to have these fixed too though. FYI:

  • The deprecated warnings are from the Ice generated code. I've filed a Bug/RFE with ZeroC, but that of course hasn't gotten us far. One option would be to add a pre-processing step of the generated files to strip out the declarations. Alternatively, if anyone can find the magic compiler flags, by all means. I've looked though.
  • The Ivy warning is annoying, but I've also tried multiple times to make it go away. A newer version of Ivy may have fixed the issue if anyone would like to check that out.

comment:3 Changed 11 years ago by mtbcarroll

Ah, yes, thanks, your comment on the _*Tie.java files at http://www.zeroc.com/forums/comments/4155-possibly-remove-deprecation-generated-_-tie-java-class.html -- perhaps it's time for a "how's that been going then?" (-:

comment:4 Changed 8 years ago by sbesson

  • Version set to OMERO-5.2.0
Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.67342 sec.)

We're Hiring!