<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://jogamp.org/bugzilla/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.2"
          urlbase="https://jogamp.org/bugzilla/"
          
          maintainer="sgothel@jausoft.com"
>

    <bug>
          <bug_id>1244</bug_id>
          
          <creation_ts>2015-10-03 15:39:36 +0200</creation_ts>
          <short_desc>MovieSimple: String format %d implicit conversion from boolean to int fails using OpenJDK 1.8</short_desc>
          <delta_ts>2015-10-03 18:02:09 +0200</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>JogAmp</classification>
          <product>Jogl</product>
          <component>core</component>
          <version>2.3.2</version>
          <rep_platform>All</rep_platform>
          <op_sys>all</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>---</priority>
          <bug_severity>trivial</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Xerxes Rånby">xerxes</reporter>
          <assigned_to name="Sven Gothel">sgothel</assigned_to>
          <cc>sgothel</cc>
          
          <cf_type>DEFECT</cf_type>
          <cf_scm_refs>7464d081c5381d513af2b8fd8c388390f8c60cf7</cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>5329</commentid>
    <comment_count>0</comment_count>
    <who name="Xerxes Rånby">xerxes</who>
    <bug_when>2015-10-03 15:39:36 +0200</bug_when>
    <thetext>Running MovieSimple fails using OpenJDK 1.8.0_51 with the exception:
Caused by: java.util.IllegalFormatConversionException: d != java.lang.Boolean
	at java.util.Formatter$FormatSpecifier.failConversion(Formatter.java:4302)
	at java.util.Formatter$FormatSpecifier.printInteger(Formatter.java:2793)
	at java.util.Formatter$FormatSpecifier.print(Formatter.java:2747)
	at java.util.Formatter.format(Formatter.java:2520)
	at java.util.Formatter.format(Formatter.java:2455)
	at java.lang.String.format(String.java:2928)
	at com.jogamp.opengl.test.junit.jogl.demos.es2.av.MovieSimple$InfoTextRendererGLELBase.display(MovieSimple.java:189)

final String text1 = String.format(&quot;%0&quot;+ptsPrec+&quot;f/%0&quot;+ptsPrec+&quot;f s, %s (%01.2fx, vol %01.2f), a %01.2f, fps %02.1f -&gt; %02.1f / %02.1f, v-sync %d&quot;,
                    pts, mPlayer.getDuration() / 1000f,
                    mPlayer.getState().toString().toLowerCase(), mPlayer.getPlaySpeed(), mPlayer.getAudioVolume(),
                    aspect, mPlayer.getFramerate(), lfps, tfps, swapIntervalSet);

openjdk version &quot;1.8.0_51&quot;
OpenJDK Runtime Environment (build 1.8.0_51-b16)
OpenJDK 64-Bit Server VM (build 25.51-b03, mixed mode)

replace
v-sync %d with
v-sync %b
fixes the issue</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5330</commentid>
    <comment_count>1</comment_count>
    <who name="Xerxes Rånby">xerxes</who>
    <bug_when>2015-10-03 15:56:36 +0200</bug_when>
    <thetext>Branch ready to merge: https://github.com/xranby/jogl/tree/Bug1244
https://github.com/xranby/jogl/commit/7464d081c5381d513af2b8fd8c388390f8c60cf7</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5332</commentid>
    <comment_count>2</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2015-10-03 18:02:09 +0200</bug_when>
    <thetext>merged  7464d081c5381d513af2b8fd8c388390f8c60cf7</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>