Uploaded image for project: 'Cocoon'
  1. Cocoon
  2. COCOON-2341

Use ImageIO instead of old com.sun.image.* package in ImageReader

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.12
    • 2.1.13
    • * Cocoon Core
    • None
    • Normal
    • Patch available
    • Cocoon Core

    Description

      Classes from sun.* should not be used as specified in:
      http://www.oracle.com/technetwork/java/faq-sun-packages-142232.html

      ImageIO is available since java 1.4. I have tested it using java 1.4 version and it works. This change has already be implemented in cocoon 2.2.1 version as in: https://issues.apache.org/jira/browse/COCOON-2327

      I have a patch which is pretty much the same as the one in COCOON-2327 only differences are that import of SystemUtils is removed and It is not using generics to keep compatibility with java 1.4.

      Additionally this change allows cocoon-core 2.1.13-dev to compile in java 1.7

      Attachments

        1. COCOON-2341.patch
          5 kB
          Reynaldo Porras
        2. COCOON-CaptchaReader-2341.patch
          2 kB
          Reynaldo Porras
        3. COCOON-CaptchaReader-sample-sitemap-2341.patch
          0.5 kB
          Reynaldo Porras

        Activity

          People

            ilgrosso Francesco Chicchiriccò
            rporras Reynaldo Porras
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: