Closed JonathanxD closed 6 years ago
How did you build Avian? If you built with the openjdk
option, you shouldn't need to set the classpath to rt.jar. If you did not build with the openjdk
option, using rt.jar as the classpath simply won't work.
I've build by calling make
only, now I tried to build with jdk, that worked, but I think that this still a bug because does not work without linking openjdk, otherwise emptyList()
should not work too.
The default build (without the openjdk
option) uses Avian's built-in class library, which only contains a small subset of classes and methods from the JRE. As you can see, not all the methods in all the classes have been implemented: https://github.com/ReadyTalk/avian/blob/master/classpath/java/util/Collections.java. If you need a complete class library, you need to link with OpenJDK.
Okay, Thanks!
Avian does not find
unmodifiableCollection
method inCollections
:Output: