Skip to content

Unable to create object named 'io' of type Integer  #55

@eveningsamurai

Description

@eveningsamurai

I have been trying to create an object of type Integer

Integer io = new Integer(10);
System.out.println(io)

but seem to be running into issues

|   Integer io = new Integer(10);
cannot find symbol
  symbol:   class 

|   Integer io = new Integer(10);
static import only from classes and interfaces

I can do it for the Long wrapper fine
Long lo = new Long(10);

I have tried this in a jshell and that works. I have verified that the jshell is using the jdk
java --list-modules | grep "jdk.jshell" [email protected]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugcategory: kernelIssues related to things that need to be fixed inside the kernel.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions