Skip to content

2.9 regression: can't use scala.collection.mutable.HashMap from Java #4238

Closed
@scabug

Description

@scabug
  ~/nl> java -version
java version "1.6.0_22"
Java(TM) SE Runtime Environment (build 1.6.0_22-b04-307-10M3261)
Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03-307, mixed mode)
  ~/nl> bin/scala -version                                                             
Scala code runner version 2.9.0.r24265-b20110211020037 -- Copyright 2002-2011, LAMP/EPFL
  ~/nl> cat J.java                                                                     
class J {
	scala.collection.mutable.HashMap<String, String> x =
		new scala.collection.mutable.HashMap<String, String>() ;
}
  ~/nl> javac -classpath project/boot/scala-2.9.0-SNAPSHOT/lib/scala-library.jar J.java
J.java:2: cannot access scala.collection.mutable.HashMap
bad class file: scala/collection/mutable/HashMap.class(scala/collection/mutable:HashMap.class)
undeclared type variable: Entry
Please remove or make sure it appears in the correct subdirectory of the classpath.
	scala.collection.mutable.HashMap<String, String> x =
	                        ^

possibly related: #3249

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions