Open
Description
Hello there,
I came across the Chapter 02 example where we are compiling a single module from scratch. When I try to compile the example with the following command:
javac -d out --module-source-path src --module packt.addressbook
I see the following:
import sun.misc.Unsafe;
^
(package sun.misc is declared in module jdk.unsupported, but module packt.addressbook does not read it)
1 error
I am using java 11 to run the examples, I am not sure if this is related and I was navigating the code and I saw that the import is not used in the code:
Anyways I was wondering if the import is needed in the code? Is it related to the java version I am running?
Metadata
Metadata
Assignees
Labels
No labels