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 148287 - [65cat] AssertionError: scala.collection.mutable.Undoable
Summary: [65cat] AssertionError: scala.collection.mutable.Undoable
Status: NEW
Alias: None
Product: contrib
Classification: Unclassified
Component: Scala (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: _ dcaoyuan
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-24 21:10 UTC by dynamite
Modified: 2008-09-25 11:02 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 117896


Attachments
stacktrace (2.77 KB, text/plain)
2008-09-24 21:11 UTC, dynamite
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dynamite 2008-09-24 21:11:01 UTC
Build: NetBeans IDE Dev (Build 200809220201)
VM: Java HotSpot(TM) 64-Bit Server VM, 10.0-b23, Java(TM) SE Runtime Environment, 1.6.0_07-b06
OS: Linux, 2.6.24-21-generic, amd64

User Comments:
dynamite: package example
import scala.collection.mutable.|
object C
class ChecksumAccumulator {
    private var sum=0
    def add(b: Byte) {sum += b}
    def checksum() {~(sum & 0xFF) + 1}
}

With the cursor at | I tried to type Map and got this exception.



Stacktrace: 
java.lang.AssertionError: scala.collection.mutable.Undoable
        at com.sun.tools.javac.code.Types.makeCompoundType(Types.java:1588)
        at com.sun.tools.javac.code.Types.setBounds(Types.java:1792)
        at com.sun.tools.javac.jvm.ClassReader.sigToTypeParam(ClassReader.java:808)
        at com.sun.tools.javac.jvm.ClassReader.sigToTypeParams(ClassReader.java:778)
        at com.sun.tools.javac.jvm.ClassReader.sigToTypeParams(ClassReader.java:762)
        at com.sun.tools.javac.jvm.ClassReader.readTypeParams(ClassReader.java:493)
Comment 1 dynamite 2008-09-24 21:11:12 UTC
Created attachment 70519 [details]
stacktrace
Comment 2 Dusan Balek 2008-09-25 11:02:10 UTC
Caused by the invalid 'Signature' attribute of the 'scala.collection.mutable.RevertableHistory' class contained in the
'scala-library.jar' (version: scala-2.7.2.RC1):
<A:Lscala/collection/mutable/Undoable;:Lscala/collection/mutable/Undoable;B:Ljava/lang/Object;>Lscala/collection/mutable/History<TA;TB;>;Lscala/collection/mutable/Undoable;Lscala/ScalaObject;;
See class file format spec - http://java.sun.com/docs/books/jvms/second_edition/ClassFileFormat-Java5.pdf page 105.

Older versions of this library seem to be valid (I have checked 2.7.1.final).

Reassigning to Scala.