Please allow package imports

Now I have to write the following code:

import test.t1.A as t1_A
import test.t2.A as t2_A

val a1 = t1_A()
val a2 = t2_A()

I would like to write it as:

import test.t1
import test.t2

val a1 = t1.A()
val a2 = t2.A()

this code worked at some point of time (year ago or something like that), but then it stopped working. For my particular use-case this feature would be very handsome. I generate classes from WSDL using wsimport. There are many schemas and some classes have the same name, but they are from different packages and not necessarily the same. Yet I have to work with those classes at one place.

4 Likes