Task #9518 (closed)
Bug: Java 7 compile failure (potential runtime error?)
Reported by: | cxallan | Owned by: | jburel |
---|---|---|---|
Priority: | blocker | Milestone: | OMERO-4.4.4 |
Component: | Insight | Version: | n.a. |
Keywords: | n.a. | Cc: | wmoore, Ingvar@… |
Resources: | n.a. | Referenced By: | n.a. |
References: | n.a. | Remaining Time: | 0.0d |
Sprint: | 2012-08-28 (3) |
Description
When building OMERO.insight with Java 7 the following compile failures pops up:
... /home/ingvar/Software/omero_sliceviewer/openmicroscopy/components/insight/SRC/ \ org/openmicroscopy/shoola/agents/imviewer/util/saver/ImgSaver.java:400: error: getType() in ImgSaver cannot override getType() in Window int getType() { return type; } ^ attempting to assign weaker access privileges; was public /home/ingvar/Software/omero_sliceviewer/openmicroscopy/components/insight/SRC/ \ org/openmicroscopy/shoola/agents/imviewer/util/saver/ImgSaverPreviewer.java:266: error: getType() in ImgSaverPreviewer cannot override getType() in Window int getType() { return model.getType(); } ...
This is because in Java 7, the java.awt.Window class now has a getType() method of its own:
May actually cause runtime errors on Java 7 as well so I'm marking this as a blocker.
Change History (5)
comment:1 Changed 12 years ago by jmoore
- Milestone changed from OMERO-4.4.2 to OMERO-4.4.3
comment:2 Changed 12 years ago by jburel
- Remaining Time set to 0.1
- Sprint set to 2012-08-28 (3)
comment:3 Changed 12 years ago by jburel
comment:4 Changed 12 years ago by jburel
- Remaining Time changed from 0.1 to 0
- Status changed from new to closed
comment:5 Changed 12 years ago by jburel <j.burel@…>
(In [dfaed0337c76e4ba9c4aca3ade4cb3eb2cec3d8f/ome.git] on branch develop) Fix Java 7 compile failure (see #9518)
see see PR https://github.com/openmicroscopy/openmicroscopy/pull/312