cincheo / jsweet

A Java to JavaScript transpiler.
http://www.jsweet.org
Other
1.46k stars 159 forks source link

test: Change erased type in AnnotationTest #768

Closed kohlschuetter closed 1 year ago

kohlschuetter commented 1 year ago

Just to test a type erasure, we currently reference javax.accessibility.AccessibilityProvider, which is in the "java.deskop" module.

If we were to modularize jsweet, we would have to "requires java.desktop" just for this (or Eclipse would not be able to run unit tests).

Moreover, that module may not exist in all JVM environments.

Change to a similar class in "java.base", ServiceLoader, and adjust module-info.java.txt accordingly.

kohlschuetter commented 1 year ago

@renaudpawlak This one also needs merging. Thanks!