Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4349766

JDK1.2.2-linux: Java2 Demo thorws IllegalArgumentException in loading

    Details

    • Subcomponent:
      2d
    • CPU:
      x86
    • OS:
      linux

      Description


      Java 2 Demo bundled in JDK 1.2.2 for linux thorws IllegalArgumentException in loading and can not be started.

      This is reproducible with 1.2.2fcs, 1.2.2-005 and 1.2.2-006 on both of RedHat6.1J and 6.1J update.

      The detail of exception as follows;


      %java -jar Java2Demo.jar
      Exception in thread "main" java.lang.IllegalArgumentException: Width (0) and heig
      ht (0) must be > 0
              at java.awt.image.SampleModel.<init>(SampleModel.java:96)
              at java.awt.image.SinglePixelPackedSampleModel.<init>(SinglePixelPackedSa
      mpleModel.java:105)
              at java.awt.image.Raster.createPackedRaster(Raster.java:594)
              at java.awt.image.Raster.createPackedRaster(Raster.java:408)
              at java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectC
      olorModel.java:633)
              at java.awt.image.BufferedImage.<init>(BufferedImage.java:241)
              at TextureChooser.getTextTexture(TextureChooser.java:102)
              at TextureChooser.<init>(TextureChooser.java:63)
              at Controls.<init>(Controls.java:94)
              at Java2Demo.<init>(Java2Demo.java:109)
              at Java2Demo.main(Java2Demo.java:460)



      This is not reproducible with kestre-linux-beta.
      And this is not reproducible with 1.2.2 for Solaris.


      To reproduce, please launch Java2 Demo bundled in JDK1.2.2 for linux.
      (jdk1.2.2/demo/jfcs/Java2D/Java2Demo.jar)

        Attachments

          Activity

            People

            • Assignee:
              tdv Dmitri Trembovetski (Inactive)
              Reporter:
              mmtokunasunw Mtokunaga Mtokunaga (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: