Skip to content

from java.util import * not working in 2.7.2 jdk 14 #105

@lsgroup

Description

@lsgroup

Hi - for some reason, import * does not work for java.util package. It works for other packages.

after import * on java.util, instantiating a class gets NameError. See below:

Jython 2.7.2 (v2.7.2:925a3cc3b49d, Mar 21 2020, 10:03:58)
[Java HotSpot(TM) 64-Bit Server VM (Oracle Corporation)] on java14.0.2
Type "help", "copyright", "credits" or "license" for more information.

from java.util import *
d = Date()
Traceback (most recent call last):
File "", line 1, in
NameError: name 'Date' is not defined

Anyone else have this issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions