Ignore:
Timestamp:
11/07/12 11:59:49 (12 years ago)
Author:
fglaser
Message:
  • Corrected bug in JFCSimplifiedLogParser and JFCComponentTree, which were using Long instead of Integers as hashCodes
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-plugin-jfc/src/main/java/de/ugoe/cs/autoquest/plugin/jfc/JFCSimplifiedLogParser.java

    r963 r965  
    7878     * </p> 
    7979     */ 
    80     private Long currentComponentHash; 
     80    private Integer currentComponentHash; 
    8181     
    8282    /** 
     
    8686     * </p> 
    8787     */ 
    88     private Long currentParentHash; 
     88    private Integer currentParentHash; 
    8989     
    9090    /** 
     
    9393     * </p> 
    9494     */ 
    95     private Long currentEventSource; 
     95    private Integer currentEventSource; 
    9696      
    9797    /** 
     
    312312        } 
    313313        else if (qName.equals("component")) { 
    314                 currentComponentHash = Long.parseLong(atts.getValue("hash"), 16); 
     314                currentComponentHash = (int) Long.parseLong(atts.getValue("hash"), 16); 
    315315                currentGuiElementSpec = new JFCGUIElementSpec(); 
    316316                currentGuiElementSpec.setElementHash((int) currentComponentHash.longValue()); 
     
    324324        } 
    325325        else if (qName.equals("componentNameChange")) { 
    326                 Long sourceHash = Long.parseLong(atts.getValue("hash"), 16); 
     326                int sourceHash = (int) Long.parseLong(atts.getValue("hash"), 16); 
    327327                String newName = atts.getValue("newName"); 
    328328                int titleSource = Integer.parseInt(atts.getValue("titleSource")); 
     
    334334                if (currentEventId != null){ 
    335335                        if ("source".equals(atts.getValue("name"))){ 
    336                                 currentEventSource = Long.parseLong(atts.getValue("value"), 16); 
     336                                currentEventSource = (int) Long.parseLong(atts.getValue("value"), 16); 
    337337                        } 
    338338                currentEventParameters.put(atts.getValue("name"), atts.getValue("value")); 
     
    351351                        } 
    352352                        else if ("parent".equals(atts.getValue("name"))) { 
    353                                 currentParentHash = Long.parseLong(atts.getValue("value"), 16); 
     353                                currentParentHash = (int) Long.parseLong(atts.getValue("value"), 16); 
    354354                        } 
    355355            } 
     
    378378        } 
    379379        else if (qName.equals("component") && currentComponentHash != null) { 
    380                 currentComponentTree.add(currentParentHash, currentComponentHash, currentGuiElementSpec); 
     380                currentComponentTree.add(currentComponentHash, currentParentHash, currentGuiElementSpec); 
    381381                // do something with the ancestor list here 
    382382                 
Note: See TracChangeset for help on using the changeset viewer.