söndag 17 april 2016

Boys keep swinging

When running the Swing applicaiton Jaguar, the AmigaGuide reader, I got exceptions due to some missing font stuff.

Light vs. heavy

When opening a Swing GUI, Swing draws all the interface components, buttons, lists, text input strings, etc, on its own. So on each platform, be it Windows, MacOS or AmigaOS, a Swing GUI would look the same. This can be compared to AWT where all the buttons are drawn by the operating system, meaning that an AWT application looks like a Windows application on Windows, and an AmigaOS application on AmigaOS. This should mean that implementing Swing requires less coding for each new platform -- if a platform can draw lines and boxes, it can also draw Swing applications, whereas to support AWT, someone would have to map each AWT button to, in our case, an intuition button. And repeat this for radio buttons, tabs, lists, text input string, etc. Usually Swing components are defined as a lightweight, and AWT componenets are heavyweight.

In GNU Classpath there exists implementations for the Swing stuff for various backends, such as GTK, X and QT. The font exception I got for Swing, is due to the Amiga implementation currently only returning "null" for some of these things. And, since Swing has to draw everything on its own, it also has to know what a font looks like. In the GTK/X/QT implementations this is handled by calling each frameworks native methods for that stuff (this is stuff like how many pixels wide the font is, where the baseline is, etc.). There is however a non-native font implementation in GNU Classpath called OpenTypeFont. This implementation actually reads the entire font file, and calculates the different font metrics in Java -- meaning I don't have to create native calls down to Amiga's font handling stuff (bullet.library, diskfont.library, etc), but instead rely on the Java implementation to read the TrueType fonts we usually have in Fonts:_ttf/.
Now, the OpenTypeFont implementation uses something called MappedByteBuffer's. A MappedByteBuffer is like a normal buffer of bytes, however backed by an actual file. The advantage of a MappedByteBuffer is that we can open a file, map it to memory, and pretend that we've read the entire file into memory, although we actually haven't. When the Java application reads a byte from the buffer, the underlying operating system will make sure that stuff is read from the file. Font files can be pretty large, so that's motivation behind using MappedByteBuffer's in this case -- we don't have to put the entire file in memory.

In order to implement MappedByteBuffer's, the Unix/Linux/Windows implementation uses mmap(), which does exactly what we want -- map a file to memory. There is an AmigaOS 4 equivalent in exec.library, the MMU interface called MapMemory. This is however:

       extremely dangerous to use if you don't know what
       you're doing. And since the virtual addressing architecture is
       not publically documented, you do *NOT* know what you're doing.
       If in doubt, don't use this function, and rely on ExecSG to do the job.


Anyhow, with some helpful pointers from fellow amigans at support.amigaos.net, I've actually gotten some sort of mapped byte buffer implementation in place. I'm currently simply reading the entire file into memory, and then I just reat like an ordinary byte buffer. So I've basically removed all the perks of the MappedByteBuffer. But now atleast the OpenTypeFont implementation happily reads the fonts!
But, of course, this isn't enough. When I run the Jaguar application, a windows do open, but it's oh so empty. I'm not very surprised, since the Swing implementation on Amiga isn't done. One could illustrate it like a painter standing with a brush, eagerly waving in the air, with no paint on the brush, and no canvas in sight.

Either way, I, like the boys, keep swinging.

lördag 19 mars 2016

Swing it, magistern!

Finally motivated by some inquiring posts on amigans.net, and a donation, I've found some time to continue my Jamiga works. I'm now focusing on AWT/Swing. So, swing it magistern!

This is Alice Babs, Sweden's (late) most famous be-bop-a-doodelidoo-scat singer. She swings it good.

I've setup a Trello board, mostly for my own peronsal use. I've found that given my sometimes rather long pauses, I tend to forget what I've done. So I'm trying this Trello out, where I'll create cards under "Doing" for the tasks I'm currently doing, and adding what else I might come up with under "To do". Hopefully I'll be able to keep it updated.
If you register for Trello, I think its possible to comment and vote and stuff.

Currently there are two cards under "doing": "Fix current AWT/Swing implementation", and "Fix IntuiFontPeer". The latter being more exactly what I'm doing, and the former being the greate context why I'm doing the latter. In the "done" department we have "Find Swing/AWT application to run", which is done. The result was the oh so exciting Swing application "Jaguar". Jaguar is a Java AmigaGuide reader, using Swing.

Screenshot from Linux.
Hardly the killer app AmigaOS needs, but it starts, and has a GUI. Written in 1998 it uses the deprecated imports "com.sun.java.swing", instead of "newer" "javax.swing". After a quick find & replace, Jaguar could be compiled and run with JAmiga. It does however, of course, throw errors and can't actually be run. But that's what the Trello cards are about. (One more thing to note about Jaguar is that it can't be used, since there's a few exception when clicking the AmigaGuide buttons... but that's really just a minor detail. After all we have MultiView.)

fredag 30 oktober 2015

Mind sweeped

Today I'm playing a game of Minesweep. I never really got the hang of that game, but I'm hoping that one day we might be able play some more intriguing games. On the Amiga, using JAmiga!

So, yes, I've finally managed to get the existing AWT functionality working! Much of this is not my code, but created like ten years ago (!) by the original JAmiga developer, Peter Werno. There were a few issues that kept it from running using the new JamVM, and otherwise updated code, but I've finally got the original demos to work.


There were a few synchronization issues, which didn't happen before. One minor, easy quick fix, was to add the word "transient", I mean "volatile" to the running flag of the window listener thread. This is how it works: the main Java thread wants to open a window. Then a new "window listener" thread is started, which actually opens the window. In order for the main thread to know when the window has been opened, it polls and loops for a flag to be set to true by the window listener thread.

// main thread waits for(ever) for running to be true 
MainThread::startGUI() {
   new WindowListenerThread().openWindow();
   while(running == false) {
     // do nothing

// window listener notifies "object" when opened
WindowListenerThread::openWindow() {
   running = true;

In the old code, this was a normal boolean flag, not marked with special word "volatile". "Volatile" means that the variable can be changed by more than one thread, and, if you don't mark it that way, the JVM can make clever assumptions if it thinks that this variable isn't going to change. This means that if the main thread keeps looping and looking at it, the flag will, most of the times, be false. Even though it will take like no time to open that window, the loop will probably have made quite a few loops, and thus, in order to optimize and get a snappier Java experience, instead of actually fetching the value of the flag each time, the JVM assumes it is always false. And this is all according to the specifications and the way Java works. Previously the JVM didn't make this clever assumption (or if it was the old Java compiler that didn't make them).

I also added some synchronization around these parts, so instead of a constant loop, the loop is synchronized, meaning it checks the flag, and then waits to be notified from the window listener thread, and only then checks the flag.

// main thread waits for "object" to be notified
MainThread::startGUI() {
   new WindowListenerThread().openWindow();
   while(running == false) {


// window listener notifies "object" when opened
WindowListenerThread::openWindow() {
   running = true;

This synchronization (the notify() and wait() methods) are part of the Java standard, and used all over the place. And when looking at it for the AWT stuff, I found some things in my implementation that were not quite working. I've known that the synchronization and signalling parts have had some glitches, so that signals sometimes aren't received as they should, leading the JVM to a halt. I knew I was taking a few shortcuts before, but now I'm pretty confident it works according to specification, since I this time actually carefully read the specifications... And, I've also been able to verify that it seems to work better, since I actually now use JAmiga to compile Java code when I'm developing JAmiga on my X1000. We kind of almost have a Java implementation so we can build Java ourselves on the Amiga!
Edited: of course I meant volatile, not transient

So, all the graphics is done now?

Now, this doens't mean that the graphics are all done, and that we can download NetBeans and run it. There's still quite a few unimplemented methods in the JAmiga specific AWT-packages. But it's getting there!

onsdag 7 oktober 2015

Software Freedom Day!

Saturday the 19th september I travelled to Uppsala, on Software Freedom Day, where Uppsala Linux User Group had an event. I was invited to talk about Jamiga: Java on Amiga.

You can see it below. It's in Swedish, but there are subtitles in English.

A big thanks to ULUG and Josef Andersson for inviting me, and special kudos to Joel Edberg for filming and doing the editing!

Besides me babbling about JAmiga, there were also talks on how open source software is used at SVT (the Swedish public service television), a talk about Gnome and a series of interviews on how open source products are used at various Swedish startups. Very interesting stuff indeed! Also, not to forget the beer and wine at a local pub afterwards. Nice to meet some Amiga folks IRL.

lördag 21 mars 2015

Interesting platform, but missing implementation here

In my last blog entry (which was ages ago, I know!), I bragged about my OpenJDK efforts. Or bragged is perhaps not the word, but, I mentioned it. I sadly haven't had time to do much about OpenJDK lately, or my Amiga for that matter. But now things at work, and in my new house (yay!) are starting to go back to normal, giving me some time to tinker with JAmiga and OpenJDK.

And this is what I'm currently greeted with:

"Interesting platform, but missing implementation here". Ha! If they only knew...

Interesting platform

My AmigaOne X1000 is currently abroad for a physical check-up, but meanwhile I've been busy with my Ubuntu laptop. I managed to compile a working adtools setup with the help of salass00 guide excellent guida at os4coding.net. It wasn't that hard to do, if you just follow the instructions. However, the GCC version currently in trunk cannot be built (March 2015), so you should instead use the 4.9.x tag. At step 5, "Build and install gcc", you have to alter "gcc-build/Makefile" which points to "gcc-trunk", and "trunk", and change this to "gcc-4.9.x" and "4.9.x", respectively. And you must have checked out the 4.9.x branch from SVN.

With the adtools cross-compiler suite up and running, I've begun my porting efforts. I've done this before, both trying the IcedTea OpenJDK project, and vanilla OpenJDK 7 and 8. My current focus is however on OpenJDK 9, without any iced tea -- just regular coffee (currently mostly decaf though, or perhaps just disgusting brown water). OpenJDK isn't released or done yet. If I understand the OpenJDK procedures correctly, each big version (i.e. 9), has a number of sub projects working on different aspects of OpenJDK. The project "Jigsaw" is my aim at the moment. I've talked about Jigsaw previously, referring to it as an onion, in short it aims to modularise OpenJDK. My hope is that I'll initially will get away with just porting the "java base" stuff, and then iteratively proceeding with the rest of Java. For the GNU classpath this is already possible, with its different libraries for javalang, javanet, and so on. OpenJDK in essence only has one big java-library. It is possible to disable stuff like AWT and such in OpenJDK, but in order to skip f.i. the java-net stuff, I would have to write dummy functions in order to make it compile. But with Jigsaw, the idea is to be able to disable entire modules, where java-net is one.

Missing implementation

Now, going back to the error message above. I know the reason for it, and I sort of knows what's needed. And its quite a lot. The error relates to "hotspot", which is OpenJDK's virtual machine -- where I want to use "JamVM". So, I can either try to implement support for hotspot, or try and adapt the build process to skip hotspot. It is possible to build OpenJDK without hotspot, if you use IcedTea. But IcedTea currently only supports OpenJDK 8. And, IcedTea needs some adaptation to support AmigaOS as well. So I think I'm doing the right thing going for OpenJDK 9. Hopefully.

lördag 28 juni 2014


In today's picture you can actually see AmigaOS running OpenJDK! Well, at least starting it.

The error you see in the grab is due to missing native libraries. What you actualy see is the latest version of JamVM starting, using OpenJDK 9 class files -- there's no Amiga specific code in there yet.

My next step is ofcourse to compile an OpenJDK version of java.library. I've begun the process on an Ubuntu installation with a PowerPC cross-compiler. I'll probably try to move the current JAmiga native library "framework" into the OpenJDK build process, and then iteratively move, refactor and adapt the current GNU Classpath Amiga implementation. It sounds straight forward enough, but its going to take a while.

But its a start.

lördag 24 maj 2014

More mauve

Mauving forward (I've already used that pun, I know)

I'm still looking through the mauve test suite, and this is my current report. For java.io tests you can see previous post.

Not very existing results, but I just wanted to give a status report. Besides trying to fix the errors, I'm also more actively looking into OpenJDK, currently erstablishing a build environment for it on, and for, Linux, i.e. no Amiga-specific code yet. My plan is to make jamvm use OpenJDK, get some sort of empty native Jamiga library working, so I can get it to complain about missing native methods. And then take it from there. Currently it looks like I'll be able to re-use much of my current code.

java.util: 182/228 tests passed

Passed java.util tests

TEST PASSED (2 checks) java.util.logging.SocketHandler.SocketHandler
TEST PASSED (1 checks) java.util.logging.SocketHandler.getFormatter
TEST PASSED (1 checks) java.util.logging.SocketHandler.getFilter
TEST PASSED (2 checks) java.util.logging.LogRecord.setSourceClassName
TEST PASSED (4 checks) java.util.logging.LogRecord.setLoggerName
TEST PASSED (3 checks) java.util.logging.LogRecord.setParameters
TEST PASSED (2 checks) java.util.logging.LogRecord.getThreadID
TEST PASSED (2 checks) java.util.logging.LogRecord.setSourceMethodName
TEST PASSED (3 checks) java.util.logging.LogRecord.setSequenceNumber
TEST PASSED (1 checks) java.util.logging.LogRecord.getMillis
TEST PASSED (2 checks) java.util.logging.LogRecord.setThreadID
TEST PASSED (4 checks) java.util.logging.LogRecord.setMessage
TEST PASSED (2 checks) java.util.logging.LogRecord.setLevel
TEST PASSED (3 checks) java.util.logging.LogRecord.setThrown
TEST PASSED (2 checks) java.util.logging.LogRecord.setMillis
TEST PASSED (3 checks) java.util.logging.LogRecord.setResourceBundle
TEST PASSED (2 checks) java.util.logging.XMLFormatter.getTail
TEST PASSED (3 checks) java.util.logging.XMLFormatter.getHead
TEST PASSED (6 checks) java.util.logging.XMLFormatter.formatMessage
TEST PASSED (3 checks) java.util.Collections.reverseOrder
TEST PASSED (10 checks) java.util.Collections.unmodifiableMap
TEST PASSED (10 checks) java.util.Collections.fill
TEST PASSED (35 checks) java.util.Collections.sort
TEST PASSED (4 checks) java.util.Collections.rotate
TEST PASSED (4 checks) java.util.Collections.min
TEST PASSED (4 checks) java.util.Collections.reverse
TEST PASSED (4 checks) java.util.Collections.max
TEST PASSED (9 checks) java.util.Collections.copy
TEST PASSED (19 checks) java.util.Collections.unmodifiableList
TEST PASSED (104 checks) java.util.Collections.binarySearch
TEST PASSED (12 checks) java.util.AbstractSet.AcuniaAbstractSetTest
TEST PASSED (2 checks) java.util.SimpleTimeZone.setRawOffset
TEST PASSED (4 checks) java.util.SimpleTimeZone.setStartYear
TEST PASSED (4 checks) java.util.SimpleTimeZone.hashCode
TEST PASSED (6 checks) java.util.SimpleTimeZone.getOffset
TEST PASSED (1 checks) java.util.SimpleTimeZone.clone
TEST PASSED (12 checks) java.util.SimpleTimeZone.check14
TEST PASSED (42 checks) java.util.SimpleTimeZone.constructors
TEST PASSED (3 checks) java.util.SimpleTimeZone.constants
TEST PASSED (1 checks) java.util.SimpleTimeZone.getRawOffset
TEST PASSED (2 checks) java.util.SimpleTimeZone.setDSTSavings
TEST PASSED (32 checks) java.util.SimpleTimeZone.inDaylightTime
TEST PASSED (35 checks) java.util.Stack.AcuniaStackTest
TEST PASSED (387 checks) java.util.Hashtable.AcuniaHashtableTest
TEST PASSED (4 checks) java.util.Hashtable.ContainsHash
TEST PASSED (2 checks) java.util.Hashtable.NullValue
TEST PASSED (4 checks) java.util.Hashtable.EnumerateAndModify
TEST PASSED (5 checks) java.util.Hashtable.HashContains
TEST PASSED (12 checks) java.util.Hashtable.basic
TEST PASSED (244 checks) java.util.regex.PatternSplit
TEST PASSED (2082 checks) java.util.regex.CharacterClasses
TEST PASSED (30 checks) java.util.regex.Pattern.matches
TEST PASSED (8 checks) java.util.logging.LogManager.readConfiguration
TEST PASSED (3 checks) java.util.logging.LoggingMXBean.Test
TEST PASSED (8 checks) java.util.logging.Handler.setEncoding
TEST PASSED (1 checks) java.util.logging.Handler.isLoggable
TEST PASSED (4 checks) java.util.logging.Handler.setFilter
TEST PASSED (4 checks) java.util.logging.Handler.setErrorManager
TEST PASSED (3 checks) java.util.logging.Handler.getErrorManager
TEST PASSED (4 checks) java.util.logging.Handler.setLevel
TEST PASSED (12 checks) java.util.logging.Handler.reportError
TEST PASSED (2 checks) java.util.logging.Level.hashCode
TEST PASSED (9 checks) java.util.logging.Level.getName
TEST PASSED (29 checks) java.util.logging.Level.parse
TEST PASSED (9 checks) java.util.logging.Level.intValue
TEST PASSED (7 checks) java.util.logging.Level.equals
TEST PASSED (9 checks) java.util.logging.Level.toString
TEST PASSED (8 checks) java.util.logging.Logger.getParent
TEST PASSED (10 checks) java.util.logging.Logger.getAnonymousLogger
TEST PASSED (1 checks) java.util.logging.Logger.getName
TEST PASSED (0 checks) java.util.logging.Logger.PR35974
TEST PASSED (11 checks) java.util.logging.Logger.hierarchyChecks
TEST PASSED (2082 checks) java.util.regex.CharacterClasses
TEST PASSED (30 checks) java.util.regex.Pattern.matches
TEST PASSED (499 checks) java.util.regex.Pattern.pcrematches
TEST PASSED (50 checks) java.util.regex.Pattern.UnicodeSimpleCategory
TEST PASSED (60 checks) java.util.regex.Matcher.hitEnd
TEST PASSED (5 checks) java.util.regex.Matcher.Regions
TEST PASSED (374 checks) java.util.LinkedHashMap.LinkedHashMapTest
TEST PASSED (1 checks) java.util.LinkedHashMap.Regress
TEST PASSED (3 checks) java.util.TimeZone.setID
TEST PASSED (2 checks) java.util.TimeZone.setDefault
TEST PASSED (0 checks) java.util.TimeZone.zdump
TEST PASSED (36 checks) java.util.ArrayList.subList
TEST PASSED (60 checks) java.util.TreeSet.basic
TEST PASSED (5 checks) java.util.jar.JarInputStream.getNextEntry
TEST PASSED (36 checks) java.util.LinkedList.subList
TEST PASSED (4 checks) java.util.LinkedList.SubListTest
TEST PASSED (216 checks) java.util.LinkedList.AcuniaLinkedListTest
TEST PASSED (1 checks) java.util.AbstractCollection.AcuniaAddCollectionTest
TEST PASSED (63 checks) java.util.AbstractCollection.AcuniaAbstractCollectionTest
TEST PASSED (14 checks) java.util.AbstractCollection.toString
TEST PASSED (6 checks) java.util.Currency.getInstance
TEST PASSED (4 checks) java.util.Currency.Taiwan
TEST PASSED (4 checks) java.util.Currency.CanadaFrench
TEST PASSED (4 checks) java.util.Currency.Korea
TEST PASSED (4 checks) java.util.Currency.Germany
TEST PASSED (3 checks) java.util.Currency.Constructors
TEST PASSED (4 checks) java.util.Currency.PRC
TEST PASSED (4 checks) java.util.Currency.China
TEST PASSED (4 checks) java.util.Currency.France
TEST PASSED (2 checks) java.util.Currency.ReferenceEquality
TEST PASSED (4 checks) java.util.Currency.Canada
TEST PASSED (4 checks) java.util.Currency.Japan
TEST PASSED (4 checks) java.util.Currency.UK
TEST PASSED (10 checks) java.util.Calendar.getInstance
TEST PASSED (5 checks) java.util.Calendar.simple
TEST PASSED (7 checks) java.util.Calendar.roll
TEST PASSED (22 checks) java.util.Calendar.add
TEST PASSED (1 checks) java.util.Calendar.TimeZone
TEST PASSED (2 checks) java.util.Calendar.setTime
TEST PASSED (10 checks) java.util.Calendar.minmax
TEST PASSED (12 checks) java.util.Calendar.ampm
TEST PASSED (1 checks) java.util.Calendar.setTimeZone
TEST PASSED (36 checks) java.util.Vector.subList
TEST PASSED (2 checks) java.util.Vector.retainAll
TEST PASSED (2 checks) java.util.Vector.removeAll
TEST PASSED (386 checks) java.util.Vector.AcuniaVectorTest
TEST PASSED (11 checks) java.util.Vector.copyInto
TEST PASSED (94 checks) java.util.AbstractMap.AcuniaAbstractMapTest
TEST PASSED (1 checks) java.util.zip.GZIPInputStream.PR24461
TEST PASSED (1 checks) java.util.zip.ZipEntry.time
TEST PASSED (4 checks) java.util.zip.ZipEntry.setComment
TEST PASSED (7 checks) java.util.zip.ZipEntry.Size
TEST PASSED (2 checks) java.util.zip.ZipEntry.newZipEntry
TEST PASSED (3 checks) java.util.zip.ZipInputStream.close
TEST PASSED (7 checks) java.util.zip.ZipInputStream.basic
TEST PASSED (10 checks) java.util.zip.InflaterInputStream.basic
TEST PASSED (1 checks) java.util.zip.ZipFile.NoEntryTest
TEST PASSED (2 checks) java.util.zip.ZipFile.DirEntryTest
TEST PASSED (160 checks) java.util.zip.Adler32.checksum
TEST PASSED (21 checks) java.util.Random.basic
TEST PASSED (28 checks) java.util.Date.compareTo
TEST PASSED (6 checks) java.util.Date.getTimezoneOffset
TEST PASSED (10 checks) java.util.Date.before
TEST PASSED (10 checks) java.util.Date.after
TEST PASSED (10 checks) java.util.Date.range
TEST PASSED (3 checks) java.util.Date.clone
TEST PASSED (25 checks) java.util.Date.parse
TEST PASSED (4 checks) java.util.Date.equals
TEST PASSED (99 checks) java.util.Arrays.fill
TEST PASSED (139 checks) java.util.Arrays.sort
TEST PASSED (13 checks) java.util.Arrays.asList
TEST PASSED (56 checks) java.util.Arrays.equals
TEST PASSED (67 checks) java.util.Arrays.binarySearch
TEST PASSED (3 checks) java.util.EnumSet.ComplementOf
TEST PASSED (29 checks) java.util.Iterator.ConcurrentModification
TEST PASSED (24 checks) java.util.concurrent.CopyOnWriteArrayList.AddAllTest
TEST PASSED (4 checks) java.util.concurrent.CopyOnWriteArrayList.RemoveAllTest
TEST PASSED (57 checks) java.util.concurrent.CopyOnWriteArrayList.TestIterators
TEST PASSED (6 checks) java.util.concurrent.CopyOnWriteArrayList.RetainAllTest
TEST PASSED (5 checks) java.util.concurrent.CopyOnWriteArrayList.Equals
TEST PASSED (22 checks) java.util.concurrent.CopyOnWriteArrayList.Clone
TEST PASSED (21 checks) java.util.concurrent.CopyOnWriteArrayList.AddAllAbsentTest
TEST PASSED (35 checks) java.util.concurrent.CopyOnWriteArrayList.SubListTest
TEST PASSED (16 checks) java.util.concurrent.CopyOnWriteArrayList.RemoveTest
TEST PASSED (66 checks) java.util.Collection.Test
TEST PASSED (105 checks) java.util.AbstractSequentialList.AcuniaAbstractSequentialListTest
TEST PASSED (76 checks) java.util.BitSet.AcuniaBitSetTest
TEST PASSED (10 checks) java.util.BitSet.clear
TEST PASSED (22 checks) java.util.BitSet.get
TEST PASSED (9 checks) java.util.BitSet.flip
TEST PASSED (32 checks) java.util.BitSet.jdk10
TEST PASSED (1 checks) java.util.Scanner.FindWithinHorizon
TEST PASSED (21 checks) java.util.Scanner.Radix
TEST PASSED (17 checks) java.util.Scanner.FishString
TEST PASSED (6 checks) java.util.Scanner.MultiLine
TEST PASSED (8 checks) java.util.StringTokenizer.nextElement
TEST PASSED (4 checks) java.util.StringTokenizer.hasMoreElements
TEST PASSED (4 checks) java.util.StringTokenizer.hasMoreTokens
TEST PASSED (12 checks) java.util.StringTokenizer.nextToken
TEST PASSED (31 checks) java.util.StringTokenizer.constructors
TEST PASSED (4 checks) java.util.StringTokenizer.countTokens
TEST PASSED (3 checks) java.util.Timer.taskException
TEST PASSED (1 checks) java.util.Observable.observable
TEST PASSED (3 checks) java.util.Properties.getProperty
TEST PASSED (21 checks) java.util.Properties.load
TEST PASSED (295 checks) java.util.HashMap.AcuniaHashMapTest
TEST PASSED (108 checks) java.util.AbstractList.AcuniaAbstractListTest
TEST PASSED (124 checks) java.util.GregorianCalendar.setFirstDayOfWeek
TEST PASSED (4 checks) java.util.GregorianCalendar.getMinimum
TEST PASSED (258 checks) java.util.GregorianCalendar.conversion

Failed java.util tests

TEST FAILED: 1 of 9 checks failed java.util.logging.Logger.getLogger
TEST FAILED: exception when loading java.util.logging.Logger.TestLogger
TEST FAILED: 3 of 5 checks failed java.util.logging.SocketHandler.publish
TEST FAILED: uncaught exception java.util.Collections.nCopies
TEST FAILED: 2 of 23 checks failed java.util.SimpleTimeZone.check12
TEST FAILED: 1 of 22 checks failed java.util.SimpleTimeZone.hasSameRules
TEST FAILED: 1 of 2 checks failed java.util.SimpleTimeZone.getDSTSavings
TEST FAILED: 1 of 24 checks failed java.util.SimpleTimeZone.equals
TEST FAILED: exception when loading java.util.regex.TestHelper
TEST FAILED: exception when loading java.util.logging.Level.TestUtils
TEST FAILED: 2 of 40 checks failed java.util.logging.Logger.securityChecks
TEST FAILED: exception when loading java.util.regex.TestHelper
TEST FAILED: 3 of 4 checks failed java.util.TimeZone.GetDisplayName
TEST FAILED: 1 of 1 checks failed java.util.ArrayList.serial
TEST FAILED: 2 of 163 checks failed java.util.ArrayList.AcuniaArrayListTest
TEST FAILED: uncaught exception java.util.ResourceBundle.getBundle
TEST FAILED: uncaught exception java.util.TreeMap.serialization
TEST FAILED: 1 of 2 checks failed java.util.jar.JarFile.TestOfManifest
TEST FAILED: 1 of 1 checks failed java.util.jar.JarFile.basic
TEST FAILED: 1 of 4 checks failed java.util.Currency.Italy
TEST FAILED: 1 of 5 checks failed java.util.Currency.US
TEST FAILED: 3 of 27 checks failed java.util.Calendar.dstOffset
TEST FAILED: 2 of 36 checks failed java.util.Calendar.set
TEST FAILED: 1 of 1 checks failed java.util.Vector.VectorSerialization
TEST FAILED: exception when loading java.util.AbstractMap.EIterator
TEST FAILED: exception when loading java.util.AbstractMap.Entry
TEST FAILED: exception when loading java.util.AbstractMap.ESet
TEST FAILED: uncaught exception java.util.zip.Deflater.PR27435
TEST FAILED: 1 of 2 checks failed java.util.zip.GZIPInputStream.basic
TEST FAILED: 1 of 1 checks failed java.util.zip.ZipFile.newZipFile
TEST FAILED: uncaught exception java.util.Date.serialization
TEST FAILED: exception when loading java.util.EnumSet.Colour
TEST FAILED: uncaught exception java.util.prefs.PreferenceTest
TEST FAILED: 3 of 4 checks failed java.util.Scanner.SkipPattern
TEST FAILED: 3 of 3 checks failed java.util.Scanner.FindPattern
TEST FAILED: 1 of 1 checks failed java.util.Scanner.LotsOfPMLong
TEST FAILED: 1 of 1 checks failed java.util.Scanner.LotsOfInts
TEST FAILED: 1 of 101 checks failed java.util.Scanner.Booleans
TEST FAILED: 1 of 1 checks failed java.util.Scanner.Inputs
TEST FAILED: 1 of 1 checks failed java.util.Scanner.FileInput
TEST FAILED: 1 of 1 checks failed java.util.Scanner.LotsOfPMShort
TEST FAILED: 1 of 1 checks failed java.util.Scanner.LotsOfPMInts
TEST FAILED: 1 of 20 checks failed java.util.Scanner.DoubleFloat
TEST FAILED: 1 of 1 checks failed java.util.Scanner.BigDecimalInteger
TEST FAILED: 5 of 87 checks failed java.util.Properties.AcuniaPropertiesTest
TEST FAILED: 1 of 2 checks failed java.util.GregorianCalendar.getMinimalDaysInFirstWeek

java.text: 91/112 tests passed

Passed java.text tests

TEST PASSED (1 checks) java.text.Annotation.Test
TEST PASSED (6 checks) java.text.AttributedCharacterIterator.getRunStart
TEST PASSED (1 checks) java.text.AttributedCharacterIterator.implement
TEST PASSED (46 checks) java.text.AttributedCharacterIterator.getRunLimit
TEST PASSED (3 checks) java.text.AttributedCharacterIterator.getAttribute
TEST PASSED (3 checks) java.text.AttributedCharacterIterator.Attribute.toString
TEST PASSED (4 checks) java.text.ParsePosition.Test
TEST PASSED (8 checks) java.text.Bidi.Basic
TEST PASSED (4 checks) java.text.Bidi.reorderVisually
TEST PASSED (2 checks) java.text.DecimalFormat.hashCode
TEST PASSED (15 checks) java.text.DecimalFormat.applyPattern
TEST PASSED (1 checks) java.text.DecimalFormat.getGroupingSize
TEST PASSED (6 checks) java.text.DecimalFormat.position
TEST PASSED (1 checks) java.text.DecimalFormat.setMultiplier
TEST PASSED (3 checks) java.text.DecimalFormat.setCurrency
TEST PASSED (2 checks) java.text.DecimalFormat.setNegativePrefix
TEST PASSED (3 checks) java.text.DecimalFormat.formatToCharacterIterator
TEST PASSED (2 checks) java.text.DecimalFormat.getDecimalFormatSymbols
TEST PASSED (2 checks) java.text.DecimalFormat.setDecimalSeparatorAlwaysShown
TEST PASSED (1 checks) java.text.DecimalFormat.getPositiveSuffix
TEST PASSED (2 checks) java.text.DecimalFormat.clone
TEST PASSED (1 checks) java.text.DecimalFormat.getNegativeSuffix
TEST PASSED (1 checks) java.text.DecimalFormat.PR27311
TEST PASSED (2 checks) java.text.DecimalFormat.setNegativeSuffix
TEST PASSED (3 checks) java.text.DecimalFormat.PR23996
TEST PASSED (4 checks) java.text.DecimalFormat.setGroupingSize
TEST PASSED (6 checks) java.text.DecimalFormat.toPattern
TEST PASSED (2 checks) java.text.DecimalFormat.isDecimalSeparatorAlwaysShown
TEST PASSED (71 checks) java.text.DecimalFormat.parse
TEST PASSED (2 checks) java.text.DecimalFormat.applyLocalizedPattern
TEST PASSED (14 checks) java.text.DecimalFormat.constructors
TEST PASSED (31 checks) java.text.DecimalFormat.equals
TEST PASSED (2 checks) java.text.DecimalFormat.getPositivePrefix
TEST PASSED (2 checks) java.text.DecimalFormat.setPositivePrefix
TEST PASSED (2 checks) java.text.DecimalFormat.setPositiveSuffix
TEST PASSED (1 checks) java.text.DecimalFormat.getNegativePrefix
TEST PASSED (1 checks) java.text.DecimalFormat.getMultiplier
TEST PASSED (1 checks) java.text.DecimalFormat.getCurrency
TEST PASSED (12 checks) java.text.AttributedString.addAttribute
TEST PASSED (24 checks) java.text.AttributedString.constructors
TEST PASSED (5 checks) java.text.AttributedString.Test
TEST PASSED (30 checks) java.text.AttributedString.getIterator
TEST PASSED (10 checks) java.text.AttributedString.addAttributes
TEST PASSED (2 checks) java.text.NumberFormat.PR31895
TEST PASSED (9 checks) java.text.FieldPosition.Test
TEST PASSED (4 checks) java.text.ACIAttribute.Test
TEST PASSED (1 checks) java.text.ParseException.Test
TEST PASSED (5 checks) java.text.CollationElementIterator.offset
TEST PASSED (356 checks) java.text.CollationElementIterator.jdk11
TEST PASSED (26 checks) java.text.MessageFormat.format14
TEST PASSED (19 checks) java.text.MessageFormat.format
TEST PASSED (11 checks) java.text.MessageFormat.parse
TEST PASSED (1 checks) java.text.DateFormatSymbols.setEras
TEST PASSED (1 checks) java.text.DateFormatSymbols.setMonths
TEST PASSED (1 checks) java.text.DateFormatSymbols.setZoneStrings
TEST PASSED (1 checks) java.text.DateFormatSymbols.setShortMonths
TEST PASSED (1 checks) java.text.DateFormatSymbols.setWeekdays
TEST PASSED (1 checks) java.text.DateFormatSymbols.setShortWeekdays
TEST PASSED (1 checks) java.text.DateFormatSymbols.setAmPmStrings
TEST PASSED (2 checks) java.text.DateFormat.hashCode
TEST PASSED (32 checks) java.text.DateFormat.Test
TEST PASSED (5 checks) java.text.RuleBasedCollator.VeryBasic
TEST PASSED (242 checks) java.text.RuleBasedCollator.jdk11
TEST PASSED (25 checks) java.text.StringCharacterIterator.constructor
TEST PASSED (25 checks) java.text.StringCharacterIterator.iter
TEST PASSED (1 checks) java.text.CharacterIterator.implement
TEST PASSED (2 checks) java.text.SimpleDateFormat.getDateFormatSymbols
TEST PASSED (3 checks) java.text.SimpleDateFormat.applyPattern
TEST PASSED (66 checks) java.text.SimpleDateFormat.attribute
TEST PASSED (3 checks) java.text.SimpleDateFormat.setDateFormatSymbols
TEST PASSED (1 checks) java.text.SimpleDateFormat.getAndSet2DigitYearStart
TEST PASSED (2 checks) java.text.SimpleDateFormat.toPattern
TEST PASSED (10 checks) java.text.SimpleDateFormat.constructors
TEST PASSED (7 checks) java.text.SimpleDateFormat.equals
TEST PASSED (9 checks) java.text.SimpleDateFormat.Test
TEST PASSED (2 checks) java.text.SimpleDateFormat.Cloning
TEST PASSED (0 checks) java.text.DecimalFormatSymbols.DumpDefault12
TEST PASSED (10 checks) java.text.DecimalFormatSymbols.GetSet11
TEST PASSED (3 checks) java.text.DecimalFormatSymbols.GetSet12
TEST PASSED (0 checks) java.text.DecimalFormatSymbols.DumpDefault11
TEST PASSED (1 checks) java.text.DecimalFormatSymbols.getCurrency
TEST PASSED (19 checks) java.text.ChoiceFormat.format
TEST PASSED (2 checks) java.text.ChoiceFormat.next
TEST PASSED (4 checks) java.text.ChoiceFormat.Bad
TEST PASSED (9 checks) java.text.ChoiceFormat.parse
TEST PASSED (40 checks) java.text.BreakIterator.chariter
TEST PASSED (16 checks) java.text.BreakIterator.sentiter
TEST PASSED (62 checks) java.text.BreakIterator.worditer
TEST PASSED (4 checks) java.text.BreakIterator.patho
TEST PASSED (20 checks) java.text.BreakIterator.lineiter
TEST PASSED (7 checks) java.text.Collator.Constants

Failed java.text tests

TEST FAILED: exception when loading java.text.AttributedCharacterIterator.CharItImpl
TEST FAILED: 4 of 12 checks failed java.text.DecimalFormat.digits
TEST FAILED: 2 of 12 checks failed java.text.DecimalFormat.toPattern14
TEST FAILED: 1 of 1 checks failed java.text.DecimalFormat.toLocalizedPattern
TEST FAILED: 2 of 27 checks failed java.text.DecimalFormat.formatExp
TEST FAILED: 6 of 38 checks failed java.text.DecimalFormat.MaximumAndMinimumDigits
TEST FAILED: 1 of 3 checks failed java.text.DecimalFormat.setDecimalFormatSymbols
TEST FAILED: 5 of 90 checks failed java.text.DecimalFormat.format
TEST FAILED: 5 of 16 checks failed java.text.NumberFormat.UK
TEST FAILED: 2 of 53 checks failed java.text.MessageFormat.attribute
TEST FAILED: 3 of 163 checks failed java.text.DateFormatSymbols.PR22851
TEST FAILED: 1 of 8 checks failed java.text.DateFormatSymbols.Test
TEST FAILED: 1 of 15 checks failed java.text.DateFormat.equals
TEST FAILED: 7 of 15 checks failed java.text.RuleBasedCollator.CollatorTests
TEST FAILED: 2 of 2 checks failed java.text.SimpleDateFormat.toLocalizedPattern
TEST FAILED: 5 of 24 checks failed java.text.SimpleDateFormat.parse
TEST FAILED: 2 of 4 checks failed java.text.SimpleDateFormat.applyLocalizedPattern
TEST FAILED: 5 of 15 checks failed java.text.SimpleDateFormat.regress
TEST FAILED: 1 of 7 checks failed java.text.SimpleDateFormat.Localization
TEST FAILED: uncaught exception java.text.DecimalFormatSymbols.serial
TEST FAILED: 1 of 8 checks failed java.text.Collator.GetSet

java.nio: 7/46 tests passed

Passed java.nio tests

TEST PASSED (2 checks) java.nio.ByteBuffer.putDouble
TEST PASSED (4 checks) java.nio.ByteBuffer.direct
TEST PASSED (5 checks) java.nio.ByteBuffer.Order
TEST PASSED (342 checks) java.nio.ByteBuffer.GetPut
TEST PASSED (4 checks) java.nio.ByteBuffer.compact
TEST PASSED (2 checks) java.nio.ByteBuffer.TestAllocateDirect
TEST PASSED (118 checks) java.nio.ByteBuffer.Allocating

Failed java.nio tests

TEST FAILED: exception when loading java.nio.LongBuffer.compact
TEST FAILED: exception when loading java.nio.CharBuffer.CharSequenceWrapper
TEST FAILED: exception when loading java.nio.CharBuffer.compact
TEST FAILED: exception when loading java.nio.FloatBuffer.compareTo
TEST FAILED: exception when loading java.nio.FloatBuffer.compact
TEST FAILED: exception when loading java.nio.charset.Charset.forName2
TEST FAILED: exception when loading java.nio.charset.Charset.forName
TEST FAILED: exception when loading java.nio.charset.Charset.utf16
TEST FAILED: exception when loading java.nio.charset.Charset.canEncode
TEST FAILED: exception when loading java.nio.charset.Charset.UTF8Charset
TEST FAILED: exception when loading java.nio.charset.Charset.encode
TEST FAILED: exception when loading java.nio.ShortBuffer.compact
TEST FAILED: exception when loading java.nio.DoubleBuffer.compareTo
TEST FAILED: exception when loading java.nio.DoubleBuffer.compact
TEST FAILED: exception when loading java.nio.IntBuffer.compareTo
TEST FAILED: exception when loading java.nio.IntBuffer.compact
TEST FAILED: exception when loading java.nio.channels.FileChannel.offsetSingleDirectBuffer
TEST FAILED: exception when loading java.nio.channels.FileChannel.map
TEST FAILED: exception when loading java.nio.channels.FileChannel.multibufferIO
TEST FAILED: exception when loading java.nio.channels.FileChannel.truncate
TEST FAILED: exception when loading java.nio.channels.FileChannel.manyopen
TEST FAILED: exception when loading java.nio.channels.FileChannel.singlebufferIO
TEST FAILED: exception when loading java.nio.channels.FileChannel.lock
TEST FAILED: exception when loading java.nio.channels.FileChannel.multidirectbufferIO
TEST FAILED: exception when loading java.nio.channels.FileChannel.copyIO
TEST FAILED: exception when loading java.nio.channels.FileChannel.offsetSingleBuffer
TEST FAILED: exception when loading java.nio.channels.Selector.testEmptySelect
TEST FAILED: exception when loading java.nio.channels.Channels.ChannelsTest
TEST FAILED: exception when loading java.nio.channels.SocketChannel.select
TEST FAILED: exception when loading java.nio.Buffer.DoubleBufferTest
TEST FAILED: exception when loading java.nio.Buffer.IntBufferTest
TEST FAILED: exception when loading java.nio.Buffer.BufferFactory
TEST FAILED: exception when loading java.nio.Buffer.ByteBufferTest
TEST FAILED: exception when loading java.nio.Buffer.WrappedWithOffsetBufferTest
TEST FAILED: exception when loading java.nio.Buffer.CharBufferTest
TEST FAILED: exception when loading java.nio.Buffer.ShortBufferTest
TEST FAILED: exception when loading java.nio.Buffer.PlainBufferTest
TEST FAILED: exception when loading java.nio.Buffer.FloatBufferTest
TEST FAILED: exception when loading java.nio.Buffer.LongBufferTest

java.math: 19/21 tests passed

Passed java.math tests

TEST PASSED (42 checks) java.math.BigDecimal.compareTo
TEST PASSED (164 checks) java.math.BigDecimal.divide
TEST PASSED (4 checks) java.math.BigDecimal.construct
TEST PASSED (21 checks) java.math.BigDecimal.setScale
TEST PASSED (27 checks) java.math.BigInteger.compareTo
TEST PASSED (10 checks) java.math.BigInteger.shift
TEST PASSED (17 checks) java.math.BigInteger.divide
TEST PASSED (2 checks) java.math.BigInteger.setBit
TEST PASSED (29 checks) java.math.BigInteger.modInverse
TEST PASSED (6 checks) java.math.BigInteger.add
TEST PASSED (5 checks) java.math.BigInteger.signum
TEST PASSED (1 checks) java.math.BigInteger.TestOfToByteArray
TEST PASSED (3 checks) java.math.BigInteger.modPow
TEST PASSED (9 checks) java.math.BigInteger.multiply
TEST PASSED (5 checks) java.math.BigInteger.abs
TEST PASSED (33 checks) java.math.BigInteger.equals
TEST PASSED (5 checks) java.math.BigInteger.valueOf
TEST PASSED (3 checks) java.math.BigInteger.toString
TEST PASSED (11 checks) java.math.BigInteger.ctor

Failed java.math tests

TEST FAILED: 6 of 590 checks failed java.math.BigDecimal.DiagBigDecimal
TEST FAILED: 8 of 9 checks failed java.math.BigInteger.TestOfPR27372
TEST FAILED: uncaught exception java.math.BigInteger.serialization