[rfc][icedtea-web] fix Boolean Cast For Java 7

Jiri Vanek jvanek at redhat.com
Mon Apr 20 09:58:42 UTC 2015


On 04/17/2015 10:43 PM, Lukasz Dracz wrote:
> Hello,
>
> I believe the latest patch 'Fixed javadoc warnings' (Changeset 1210:5837261a12aa) broke for java 7 due to the removal of a cast. The patch I have attached adds this cast back in.

Yup. Thanx  I was not on jdk7 until today., I'm actualy surprised it was *only* this.

Thank you for quick fix!

ok for head.

J.
>
> The cast is not necessary for Java 8 but needed for Java 7 since it returns an Object.
>
> Java 7:
>      public Object get(String name) throws IOException {
>          return Boolean.valueOf(isSet(getPosition(name)));
>      }
>
> Java 8:
>      public Boolean get(String name) throws IOException {
>          return Boolean.valueOf(isSet(getPosition(name)));
>      }
>
> Thank you,
> Lukasz Dracz
>



More information about the distro-pkg-dev mailing list