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 251884 - ClassCastException: javax.swing.JScrollPane cannot be cast to javax.swing.text.JTextComponent
Summary: ClassCastException: javax.swing.JScrollPane cannot be cast to javax.swing.tex...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 8.1
Hardware: All All
: P2 normal (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-16 08:37 UTC by Alexander Simon
Modified: 2015-04-16 09:13 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 216786


Attachments
stacktrace (8.20 KB, text/plain)
2015-04-16 08:37 UTC, Alexander Simon
Details
stacktrace (8.20 KB, text/plain)
2015-04-16 08:46 UTC, Alexander Simon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Simon 2015-04-16 08:37:46 UTC
Build: NetBeans IDE Dev (Build 20150414-6ada9e6beb67)
VM: OpenJDK 64-Bit Server VM, 24.75-b04, OpenJDK Runtime Environment, 1.7.0_75-b13
OS: Linux

User Comments:
alexvsimon: try to refactor method




Stacktrace: 
java.lang.ClassCastException: javax.swing.JScrollPane cannot be cast to javax.swing.text.JTextComponent
   at org.netbeans.modules.refactoring.java.ui.ChangeParametersPanel.autoEdit(ChangeParametersPanel.java:930)
   at org.netbeans.modules.refactoring.java.ui.ChangeParametersPanel.addButtonActionPerformed(ChangeParametersPanel.java:625)
   at org.netbeans.modules.refactoring.java.ui.ChangeParametersPanel.access$1900(ChangeParametersPanel.java:92)
   at org.netbeans.modules.refactoring.java.ui.ChangeParametersPanel$5.actionPerformed(ChangeParametersPanel.java:460)
   at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
   at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
Comment 1 Alexander Simon 2015-04-16 08:37:48 UTC
Created attachment 153230 [details]
stacktrace
Comment 2 Alexander Simon 2015-04-16 08:46:30 UTC
Created attachment 153231 [details]
stacktrace

change method parameters
Comment 3 Ralph Ruijs 2015-04-16 09:13:05 UTC
changeset:   358cb62e15b1
user:        Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org>
date:        Thu Apr 16 11:12:12 2015 +0200
summary:     251884 - ClassCastException: javax.swing.JScrollPane cannot be cast to javax.swing.text.JTextComponent