title: How to fix "Resource specification not allowed here for source level below 1.7"?
body: <p>I had to move my code to 1.6 from 1.8, and i get "Resource specification not allowed here for source level below 1.7" error. below u will see part wher i get the eror at line wit Try and while:). What can i do to fix this?</p>
  
  <pre><code>StringBuilder resultKamera2 = new StringBuilder();
  
                  {
                  try (BufferedReader brKamera2 = new BufferedReader(new FileReader("D:/test1.txt"))) {
                  while ((lineKamera2 = brKamera2.readLine()) != null) {
  
                  Matcher categoryMatcherKamera2 = CategorieKamera2.matcher(lineKamera2);                    
                  Matcher itemMatcherKamera2 = CategorieSiCantitateKamera2.matcher(lineKamera2);
  </code></pre>