<?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>22</bug_id>
          
          <creation_ts>2003-07-03 01:43:18 +0200</creation_ts>
          <short_desc>GLException hides user exception</short_desc>
          <delta_ts>2010-03-24 07:45:33 +0100</delta_ts>
          <reporter_accessible>0</reporter_accessible>
          <cclist_accessible>0</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>JogAmp</classification>
          <product>Jogl</product>
          <component>core</component>
          <version>1</version>
          <rep_platform>All</rep_platform>
          <op_sys>windows</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.javagaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=jogl;action=display;num=1057096404</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sven Gothel">sgothel</reporter>
          <assigned_to name="Sven Gothel">sgothel</assigned_to>
          
          
          <cf_type>DEFECT</cf_type>
          <cf_scm_refs></cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>38</commentid>
    <comment_count>0</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2010-03-24 07:45:33 +0100</bug_when>
    <thetext>


---- Reported by orangytang 2003-07-03 01:43:18 ----

Please see the referenced url for a more complete description.

In short, user code that throws a NullPointerException within a .display (fired via 
the Animator class), will be caught by something higher up in Jogl and rethrown as 
a totally unrelated exception.



---- Additional Comments From kbr 2003-07-14 22:40:44 ----

Need to add more logic to the main try/finally block in GLContext so that
exceptions thrown during free() don&apos;t hide exceptions thrown during the listener
body. Need a test case for this.




---- Additional Comments From kbr 2004-11-18 15:07:20 ----

(Finally reproduced this with a buggy version of the ProceduralTexturePhysics demo.)

The central try/finally cause in GLException.invokeGL() called GLContext.free()
after catching and rethrowing the end user&apos;s exception from the
GLEventListenerdisplay() routine, which caused the end user&apos;s exception to be
overwritten with the internal GLException. Fixed this by initializing the cause
of the internal exception, and also continuing to propagate out the end user&apos;s
exception.




--- Bug imported by sgothel@jausoft.com 2010-03-24 07:45 EDT  ---

This bug was previously known as _bug_ 22 at https://jogl.dev.java.net/bugs/show_bug.cgi?id=22
</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>