<?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>1410</bug_id>
          
          <creation_ts>2019-12-06 02:01:06 +0100</creation_ts>
          <short_desc>Fix NEWT PointerIcon Lifecycle (destroy and clean references @ closing)</short_desc>
          <delta_ts>2019-12-06 03:37:58 +0100</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>JogAmp</classification>
          <product>Newt</product>
          <component>core</component>
          <version>2.4.0</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>P4</priority>
          <bug_severity>critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sven Gothel">sgothel</reporter>
          <assigned_to name="Sven Gothel">sgothel</assigned_to>
          <cc>xerxes</cc>
          
          <cf_type>DEFECT</cf_type>
          <cf_scm_refs>d5ba4cae824087879a4857e20961a95da04eaebb
d693425e2e74a5e4a80c3fde552ffc7d757330f1
75afd5c6be7f68b32fbe9e5d319d888888b30719
de13e49aadd4b4df09eb1ab37c84cda404586ba5</cf_scm_refs>
          <cf_workaround>---</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>6420</commentid>
    <comment_count>0</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2019-12-06 02:01:06 +0100</bug_when>
    <thetext>Commit d5ba4cae824087879a4857e20961a95da04eaebb clarified and simplified the lifecycle of a PointerImpl instance, i.e. drop its resurrection in 
PointerImpl.validateHandle() in favor of a hard exception.

This caused detection of subsequent PointerImpl lifecycle issues,
as instances were not fully destroyed on Display closing and 
references not null&apos;ed in Display and Screen instances.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6421</commentid>
    <comment_count>1</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2019-12-06 02:02:24 +0100</bug_when>
    <thetext>d5ba4cae824087879a4857e20961a95da04eaebb

NEWT: Align DisplayImpl.createPointerIcon(..) behavior; PointerIconImpl.validatedHandle() shall not create native resource.
    
    Semantic cleanup for clarity and equal behavior
    
    Align DisplayImpl.createPointerIcon(..) behavior
    - return null handle of createPointerIconImplChecked(..) shall be accepted,
      no exception for neither of the two creation methods.
    
    PointerIconImpl.validatedHandle() shall not create native resource.
    - throws exception if handle is null (about to be used)
    - no native creation shall happen here.
    
    Display.PointerIcon.validate(): Removed, not used.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6422</commentid>
    <comment_count>2</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2019-12-06 02:08:50 +0100</bug_when>
    <thetext>d693425e2e74a5e4a80c3fde552ffc7d757330f1
PointerIcon new instances are always valid ..
    
Move native handle check to pre-destruction call in
PointerIconImpl.destroyOnEDT(..), unifying single destruction and all.

+++

75afd5c6be7f68b32fbe9e5d319d888888b30719
Fix regression of commit NEWT DisplayImpl/PointerIcon: Don&apos;t use blocking isNative...
    
This bug never allowed a PointerIconImpl to be destroyed via PointerIconImpl.destroy()

+++

de13e49aadd4b4df09eb1ab37c84cda404586ba5
Fix NEWT PointerIcon Lifecycle (destroy and clean references @ closing)
Fixed as described in comment 0.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6423</commentid>
    <comment_count>3</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2019-12-06 03:37:58 +0100</bug_when>
    <thetext>validated via unit tests</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>