This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 81449

Summary: Move inner to outer level corrupts usages of ^
Product: java Reporter: _ tboudreau <tboudreau>
Component: UnsupportedAssignee: issues@java <issues>
Status: RESOLVED FIXED    
Severity: blocker Keywords: SIMPLEFIX
Priority: P2    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description _ tboudreau 2006-07-31 05:18:05 UTC
Use move inner to outer level on A in the following class:

package javaapplication9;
public class TestRF2 {
    
    public static final class A {
        public B b = new B();
        public final class B {
            String foo = "foo";
            public int hashCode() {
                return A.this.hashCode() ^ foo.hashCode();
            }
        }
    }
}

Result is this - notice what happened in the hashCode() method.

public final class A {
    public javaapplication9.TestRF2.A.B b = new B();
    public final class B {
        String foo = "foo";
        public int hashCode() {
            return A.this.hashCode()  ??? foo.hashCode();
        }
    }
}
Comment 1 Tomas Hurka 2006-08-21 14:58:02 UTC
Fixed in trunk.
Checking in InfixExpressionImpl.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/InfixExpressionImpl.java,v  
<--  InfixExpressionImpl.java
new revision: 1.11; previous revision: 1.10
done
Comment 2 Jan Becicka 2006-09-12 09:09:43 UTC
Checking in InfixExpressionImpl.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/InfixExpressionImpl.java,v
 <--  InfixExpressionImpl.java
new revision: 1.7.26.2.2.2; previous revision: 1.7.26.2.2.1
done
Comment 3 Quality Engineering 2007-09-20 09:44:48 UTC
Reorganization of java component