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 - Move inner to outer level corrupts usages of ^
Summary: Move inner to outer level corrupts usages of ^
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@java
URL:
Keywords: SIMPLEFIX
Depends on:
Blocks:
 
Reported: 2006-07-31 05:18 UTC by _ tboudreau
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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