After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 739503 - AtkKeyEvent.java uses unchecked or unsafe operations.
AtkKeyEvent.java uses unchecked or unsafe operations.
Status: RESOLVED FIXED
Product: java-atk-wrapper
Classification: Applications
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Magdalen Berns (irc magpie)
java-atk-wrapper maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2014-11-01 15:56 UTC by Magdalen Berns (irc magpie)
Modified: 2015-06-24 17:10 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Use checked operations (2.05 KB, patch)
2014-11-01 16:52 UTC, Magdalen Berns (irc magpie)
committed Details | Review
possible fix (2.00 KB, patch)
2015-06-24 16:35 UTC, Magdalen Berns (irc magpie)
committed Details | Review

Description Magdalen Berns (irc magpie) 2014-11-01 15:56:20 UTC
To recreate run autogen.sh && make && make install and see there is a note saying the following: 

Note: AtkKeyEvent.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

Having looked the note up it seems like this is a problem with 1.5 and above[1]. It seems the problem can be resolved with use of generics.[2] Looking into that now.

[1] http://stackoverflow.com/questions/197986/what-causes-javac-to-issue-the-uses-unchecked-or-unsafe-operations-warning
[2] http://docs.oracle.com/javase/1.5.0/docs/guide/language/generics.html
Comment 1 Magdalen Berns (irc magpie) 2014-11-01 16:52:20 UTC
Created attachment 289792 [details] [review]
Use checked operations

Compiling as follows helped identify the source of the bug:

javac AtkKeyEvent.java -Xlint:unchecked
Comment 2 André Klapper 2015-02-27 16:56:01 UTC
[Moving at-spi/java-atk-wrapper bugs to separate product. See bug 740075]
Comment 3 Magdalen Berns (irc magpie) 2015-06-24 16:35:33 UTC
Created attachment 306025 [details] [review]
possible fix