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.
I get this error frequently in the editor - unfortunately there is no noticable pattern, except that it happens perhaps when scrolling after inserting some code, but it may also be something totally different: java.lang.ClassCastException: org.openide.text.PositionRef$Manager$OffsetKind at org.openide.text.PositionRef.getPosition(PositionRef.java:122) at org.openide.text.DocumentLine$Part.addAnnotation(DocumentLine.java:672) at org.openide.text.Annotation.attach(Annotation.java:85) at pmd.scan.Scanner.run(Scanner.java:141) [catch] at java.lang.Thread.run(Thread.java:595) Cheers Joseph
Created attachment 26435 [details] Message.log
probably 3rd-party pmd problem... but I am not sure - reassigning to openide/text for evaluation
Never seen that. Can't reproduce. The PositionRef$Manager should work pretty well, as it is under heavy load every day. Anyway, seems like some race condition there.
changeset: 73808:b05ace93c674