Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 216613

Summary: Debug detail formatter fails
Product: [Eclipse Project] JDT Reporter: David Pérez <david.perez.ingeniero>
Component: DebugAssignee: JDT-Debug-Inbox <jdt-debug-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3    
Version: 3.3.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard: stalebug

Description David Pérez CLA 2008-01-25 12:26:56 EST
Build ID: Build id: M20071023-1652

Steps To Reproduce:
1.Debug an application that uses Xerces
2.Inspect an Attribute (class org.apache.xerces.util.XMLAttributesImpl.Attribute)

This is a very simple class:

    static class Attribute {
        
        //
        // Data
        //

        // basic info

        /** Name. */
        public QName name = new QName();

        /** Type. */
        public String type;

        /** Value. */
        public String value;

        /** Non-normalized value. */
        public String nonNormalizedValue;

        /** Specified. */
        public boolean specified;

        /** Schema ID type. */
        public boolean schemaId;
        
        /** 
         * Augmentations information for this attribute.
         * XMLAttributes has no knowledge if any augmentations
         * were attached to Augmentations.
         */
        public Augmentations augs = new AugmentationsImpl();
        
        // Additional data for attribute table view
        
        /** Pointer to the next attribute in the chain. **/
        public Attribute next;
        
    } // class Attribute


3.Define this detail formatter:

return this.name.localpart+"="+this.value;

4.View for any instance of this class its value

5.I get this:
Detail formatter error:
 "Cannot find the field name for the object org.apache.xerces.util.XMLAttributesImpl$Attribute (id=109)"

I have tried simpler variations like this that also fail:
  return this.value;

On the other hand this works:
  return this.getClass().getName()
as it doesn't access any field.

More information:
All accessed fields are public.
Maybe the detail formatter doesn't support nested classes.
Comment 1 David Pérez CLA 2008-01-25 12:31:17 EST
Sorry, it isn't the Xerces XSLT processor, but the Saxon 8.x one
Comment 2 Eclipse Genie CLA 2020-05-09 15:03:52 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.