title: What does this error mean? java.lang.reflect.InaccessibleObjectException: Unable to make field private final int java.time.LocalDate.year
body: <p>I'm trying to make a method, which uses the Json data with jackson library to have a list of objects.
  If I run my code, I get the error:</p>
  <p>java.lang.reflect.InaccessibleObjectException: Unable to make field private final int java.time.LocalDate.year accessible: module java.base does not &quot;opens java.time&quot; to unnamed module @5c90e579</p>
  <p>Why is it giving me an error about LocalDate even though I have JodaModul in my Code?</p>
  <pre><code>public static List&lt;Tweet&gt; getTweetsFile() throws Exception{
  
              ObjectMapper mapper = new ObjectMapper().
                      registerModule(new JodaModule()).
                      configure(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS, false);
              
              File path = new File (&quot;C:/Users/PC/eclipse-workspace/hw4/tw.json&quot;);
  
              List&lt;Tweet&gt; myObjects3 =  Arrays.asList(mapper.readValue(path, Tweet.class));
      
              return myObjects3;
      }
  </code></pre>
  <p>How it looks in my File:</p>
  <pre><code>[{&quot;date&quot;:&quot;2001-12-28&quot;,&quot;tweetNumber&quot;:1,&quot;country&quot;:&quot;England&quot;,&quot;comments&quot;:11,&quot;message&quot;:&quot;I like to watch anime and reading books&quot;,&quot;retweets&quot;:3,&quot;username&quot;:&quot;Isabelle&quot;,&quot;likes&quot;:55},{&quot;date&quot;:&quot;2003-05-11&quot;,&quot;tweetNumber&quot;:2,&quot;country&quot;:&quot;France&quot;,&quot;comments&quot;:25,&quot;message&quot;:&quot;I'm Viatnamese, but I live in France&quot;,&quot;retweets&quot;:30,&quot;username&quot;:&quot;Vin&quot;,&quot;likes&quot;:110}..
  </code></pre>
  <p><strong>It's not in the right order like my Object has in their constructor, could that be the reaseon?</strong></p>