#3 Replace deprecated code with non-deprecated APIs.
Closed: Fixed None Opened 12 years ago by admiyo.

Eclipse generates 1505 Warnings for places where deprecated Code is used. These need to be replaced with the appropriate modernized API calls.


The deprecation warnings from the JDK classes are most serious, as the classes are scheduled to be removed in 1.6.

ByteToCharConverter has been replaced with java.nio.charset

Date(beginYear, beginMonth, beginDate,
beginHour, beginMin, beginSec);

Should be replaced with the Calendar API.Calendar: For example

calendar = Calendar.getInstance();
calendar.set(afterYear, afterMonth, afterDate, afterHour, afterMin, afterSec);
notBeforeDate = calendar.getTime();

The Policy Framework has been replaced by the Profile Framework.
So EPolicyException

java.security.Identity has been replaced by java.security.KeyStore

MalformedInputException scheduled to be removed, and has not identified a replacement.

The Policy Framework will be addressed in ticket #6.

Velocity warnings will be addressed in ticket #133.

master:

  • 6e4b6268b40d5994eb43dd1b5702c5465c974ca1
  • 39ce529501218365fefcb0f8d2e80db2368d062b
  • 58a343b58fb44c93579338b79eaf37089c753d19
  • cd661cb7b0448cb95f1402dc3feb1457949e0383
  • 635629d0271dfb0128af61a307642ed02eea4a17
  • edcb24f65cc3700e75d0a1d14dc2483f210b0ee4
  • 7e6da86e37c4dc60ed537316f6bc0dee76a3d6dc
  • e168d790c3e797e0dc0f94e3496636a52e935b4f
  • 2ad71e6dab29ca5ed8362fe7cb672325884aaec5
  • 018467598ec9d771daacae70b5397ad568b2ca80
  • 176905c3cf27a3ca295921f33d1be956397d4117
  • 3b65ec9bbf7fcfb69d5a9b0d59148a587cd32c49
  • e744c37ab1510f87ed4b5b3eafeb3758f1d0e30f
  • 1c8437891cdfe5580e09c495f79d81334ed0c2c0
  • 92ccc4c36ce840650f28f4b8edb3cbb5bb1d265c
  • c7437995ea2b9d1a67f73cce8b5705b7e77ac7ab
  • 70fdf22f76494a84b6cbef10598ed897a48f0798
  • a37d66662a859bd706f449edddc3ae715ee2d520
  • 5609063edc813c278de130c8cbe54d6f700d5290
  • aaa9e554b6bfbcc315bab57651c0a017ce6adc4a
  • da1e6e2f49f66fd46c8039ff1aa4386309fba8f4

master:

  • c06433455e4b9f473415c198d9688927aaa93db6

Metadata Update from @admiyo:
- Issue assigned to edewata
- Issue set to the milestone: Dogtag 10.0 - Phase 1

7 years ago

Dogtag PKI is moving from Pagure issues to GitHub issues. This means that existing or new
issues will be reported and tracked through Dogtag PKI's GitHub Issue tracker.

This issue has been cloned to GitHub and is available here:
https://github.com/dogtagpki/pki/issues/575

If you want to receive further updates on the issue, please navigate to the
GitHub issue and click on Subscribe button.

Thank you for understanding, and we apologize for any inconvenience.

Login to comment on this ticket.

Metadata