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 254751 - [81cat]IllegalStateException at org.netbeans.modules.java.source.parsing.CompilationInfoImpl.getCompilationUnit
Summary: [81cat]IllegalStateException at org.netbeans.modules.java.source.parsing.Comp...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-26 12:59 UTC by -Silver-
Modified: 2016-08-27 02:19 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 219458


Attachments
stacktrace (6.56 KB, text/plain)
2015-08-26 13:00 UTC, -Silver-
Details

Note You need to log in before you can comment on or make changes to this bug.
Description -Silver- 2015-08-26 12:59:58 UTC
Build: NetBeans IDE Dev (Build 201508240002)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.60-b23, Java(TM) SE Runtime Environment, 1.8.0_60-ea-b25
OS: Windows 7

User Comments:
-Silver-: Test case: http://services.netbeans.org/synergy/client/app/#/assignment/1495/v/1
Copy
Class II 

Steps:
1. Follow the test case steps to copy the classes in the "move" folder.
2. UNDO and REDO the copy.

This exception is thrown.
Best regards,


--
Giuseppe Tino




Stacktrace: 
java.lang.IllegalStateException
   at org.netbeans.modules.java.source.parsing.CompilationInfoImpl.getCompilationUnit(CompilationInfoImpl.java:216)
   at org.netbeans.api.java.source.CompilationInfo.getCompilationUnit(CompilationInfo.java:184)
   at org.netbeans.modules.refactoring.java.plugins.CopyClassesRefactoringPlugin$UpdateReferences.run(CopyClassesRefactoringPlugin.java:250)
   at org.netbeans.modules.refactoring.java.plugins.CopyClassesRefactoringPlugin$UpdateReferences.run(CopyClassesRefactoringPlugin.java:231)
   at org.netbeans.api.java.source.JavaSource$1.run(JavaSource.java:636)
   at org.netbeans.api.java.source.JavaSource$1.run(JavaSource.java:626)
Comment 1 -Silver- 2015-08-26 13:00:00 UTC
Created attachment 155661 [details]
stacktrace
Comment 2 Svata Dedic 2016-08-12 19:50:59 UTC
Should be fixed by jet-main#fc5fb72a2fb8
Comment 3 Quality Engineering 2016-08-27 02:19:36 UTC
Integrated into 'main-silver', will be available in build *201608270002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/fc5fb72a2fb8
User: Svata Dedic <sdedic@netbeans.org>
Log: #254751: retained only valid files in refactoring context