Community
Participate
Working Groups
Created attachment 207234 [details] Source code of the modified class. There is a discrepancy in the behavior of getting the first element of an empty ordered set and a sequence. When the collection is a sequence, getting the first element of the sequence returns null. When it is an ordered set, a no such element exception is thrown. On the other hand, getting the last element of an empty ordered set returns null. For the regular vm, null is returned for all these cases. This can be fixed by modifying the ExecEnv class by changing the implementation of the registered ordered set first operation. The class is attached.