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.
ClassCastException appears in commit validation suite when testing xml documents. I think it is related to mfukala commit (20050817-1847).
Created attachment 24015 [details] Stack trace
The cause of this issue is Issue #49497 (CCE. FilterDocument instead of BaseDocument) which caused the same problem in JspFoldManager. I have added some realtime types checks so now the code should not break the commit validation. If the problem occures an CCE with a proper description is thrown with INFORMATIONAL level. The issue is quite random (the CV passed on my computer and on the nbbuilder as well few times), but seems to happen more often than before so maybe someone from editor or core could fix it!
I added dependency on issue 49497. We agreed to keep this issue open until issue 49497 is fixed. Then all hacks can be removed.
I guess
I guess we've tracked this with Jirka and it was finding a PlainKit with PlainDocument which was then wrapped by the FilterDocument. I do not understand though that you've seen this randomly. Any progress regarding this? Like in the past you can add a breakpoint or debug msg into o.o.text.FilterDocument's constructor to track the problem.
I think you tracked this with Marek. Anyway I can't see the exception in recent builds.
Since the impact of the Issue #49497 has been hacked in the xml fold manager code there is no more user impact. Once the problemati issue is fixed I will remove the hacks. Downgrading to P4.
TM 5.0->TBD
fixed already
Verified.