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 121221 - CasualDiff Illegal values
Summary: CasualDiff Illegal values
Status: RESOLVED DUPLICATE of bug 121086
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-05 19:55 UTC by jozart
Modified: 2007-12-07 16:37 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 jozart 2007-11-05 19:55:53 UTC
I entered the code below in NB 6.0 B2 and then tried to refactor-rename the 'enum' identifier to 'iter'.

The rename failed (see Issue 121086) and the following appeared in log file.

-----
/*
 * Demonstrate CasualDiff Illegal values bug.
 */

/**
 * @author Joseph Bowbeer
 */
public class CasualDiffBug {
    public static void main(String[] args) {
        Object enum;
    }
}
-----
INFO [org.netbeans.modules.java.source.save.CasualDiff]: Illegal values: from = 184; to = 183.
Please, attach your messages.log to new issue!


Btw, the rename action changed the affected line to:

        Object ite    }

Using a different illegal identifier, such as 'new', does not log a message but fails in a different way: it renames the
'main' method instead of the Object identifier.
Comment 1 Jan Lahoda 2007-11-15 12:01:27 UTC
Direct result of issue #121086, IMO.

*** This issue has been marked as a duplicate of 121086 ***