Quick question on IntelliJ, this is Java(8) relate...
# random
j
Quick question on IntelliJ, this is Java(8) related, but affects me on Kotlin as well; I'm doing:
Copy code
Cookie cookie = new Cookie(key, value);
    cookie.setHttpOnly(true);
When I do
mvn clean install
, it compiles perfectly (both Linux and OSX), no errors, on OSX if I click Build -> Make Project, it compiles perfectly, but in Linux if I click Build -> Make Project, I get the following error:
Copy code
Error:(115, 11) java: cannot find symbol
  symbol:   method setHttpOnly(boolean)
  location: variable cookie of type javax.servlet.http.Cookie
In my pom.xml I'm specifying the servlet version as 3.1:
Copy code
<!-- Servlet -->
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>javax.servlet-api</artifactId>
            <version>3.1.0</version>
            <scope>provided</scope>
        </dependency>
Any idea why intelliJ would do this on Linux?