<?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>958</bug_id>
          
          <creation_ts>2014-02-02 15:49:41 +0100</creation_ts>
          <short_desc>Add support for OpenJDK version notation</short_desc>
          <delta_ts>2014-02-24 23:38:05 +0100</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>JogAmp</classification>
          <product>Gluegen</product>
          <component>core</component>
          <version>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>P1</priority>
          <bug_severity>critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Manu">puybaret</reporter>
          <assigned_to name="Sven Gothel">sgothel</assigned_to>
          <cc>gouessej</cc>
          
          <cf_type>---</cf_type>
          <cf_scm_refs>86bdae8ce26d291c0096ed500581239dd2a87125</cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>3676</commentid>
    <comment_count>0</comment_count>
    <who name="Manu">puybaret</who>
    <bug_when>2014-02-02 15:49:41 +0100</bug_when>
    <thetext>In OpenJDK, Java version notation is a little different from Oracle JDK one:
OpenJDK uses &quot;-u&quot; instead of &quot;_&quot; to separate the version number from the update number, i.e. &quot;1.7.0-u60-b04&quot; vs &quot;1.7.0_60-ea&quot;.
That would be nice to take this into account in the static initializer of jogamp.common.os.PlatformPropsImpl class. You could simply replace the line: 
  final int usIdx = JAVA_VERSION.lastIndexOf(&quot;_&quot;);
by:
  final int usIdx = JAVA_VERSION.replace(&quot;-u&quot;, &quot;_&quot;).lastIndexOf(&quot;_&quot;);
If you want to program it better, you can also test the &quot;java.runtime.name&quot; property that returns &quot;OpenJDK Runtime Environment&quot; for OpenJDK.

See also bug #944 https://jogamp.org/bugzilla/show_bug.cgi?id=944</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3736</commentid>
    <comment_count>1</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2014-02-16 06:34:44 +0100</bug_when>
    <thetext>86bdae8ce26d291c0096ed500581239dd2a87125
  Done .. avoding the replace op.

Pls validate!

Thank you Manu.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3785</commentid>
    <comment_count>2</comment_count>
    <who name="Manu">puybaret</who>
    <bug_when>2014-02-24 23:38:05 +0100</bug_when>
    <thetext>Works for OpenJDK 1.7.0-u60-b04 and Oracle Java 1.7.0_60-ea

Thanks for the fix :-)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>