{"id":711,"date":"2018-06-14T17:07:09","date_gmt":"2018-06-14T08:07:09","guid":{"rendered":"https:\/\/www.nukoneko.info\/blog\/?p=711"},"modified":"2018-06-14T19:54:23","modified_gmt":"2018-06-14T10:54:23","slug":"intellij%e3%81%a7%e3%83%93%e3%83%ab%e3%83%89%e3%81%97%e3%81%9f%e6%99%82%e3%81%ab-internal-java-compiler-error-%e3%81%8c%e5%87%ba%e3%81%a6%e3%81%a4%e3%82%89%e3%81%8b%e3%81%a3%e3%81%9f","status":"publish","type":"post","link":"https:\/\/www.nukoneko.info\/blog\/?p=711","title":{"rendered":"IntelliJ\u3067\u30d3\u30eb\u30c9\u3057\u305f\u6642\u306b  internal java compiler error \u304c\u51fa\u3066\u3064\u3089\u304b\u3063\u305f"},"content":{"rendered":"<h1>\u6982\u8981<\/h1>\n<p>\u307b\u307c\u4f5c\u308a\u305f\u3066\u306a\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u30d3\u30eb\u30c9\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u51fa\u3066\u5931\u6557\u3059\u308b<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nInformation:java: javacTask: \u30bd\u30fc\u30b9\u30fb\u30ea\u30ea\u30fc\u30b98\u306b\u306f\u30bf\u30fc\u30b2\u30c3\u30c8\u30fb\u30ea\u30ea\u30fc\u30b91.8\u304c\u5fc5\u8981\u3067\u3059\nInformation:java: Errors occurred while compiling module HogeApp_main\nInformation:javac 1.8.0_171 was used to compile java sources\nInformation:2018\/06\/14 16:43 - Compilation completed with 1 error and 0 warnings in 6 s 128 ms\nError:java: Compilation failed: internal java compiler error\n<\/pre>\n<p><!--more--><\/p>\n<h2>\u74b0\u5883<\/h2>\n<ul>\n<li>macOS High Sierra 10.13.4<\/li>\n<li>IntelliJ IDEA Ultimate 2018.1.5<\/li>\n<li>JDK 1.8.0_171<\/li>\n<\/ul>\n<h2>\u539f\u56e0<\/h2>\n<p>sourceCompatibility \u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3068 bytecode \u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u9055\u3063\u305f\u306e\u304c\u539f\u56e0\u3060\u3063\u305f\u3002<\/p>\n<p>\u8a2d\u5b9a\u306e\u5834\u6240\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3002<br \/>\n[Preferences] -> [Build, Execution, Deployment] ->  [Compiler] -> [Java Compiler]<\/p>\n<p>\u3053\u3053\u306e &#8220;Project bytecode version&#8221; \u304c <strong>1.7<\/strong> \u306b\u306a\u3063\u3066\u3044\u305f\u306e\u304c\u539f\u56e0<br \/>\n\u4f7f\u3063\u3066\u3044\u308bJDK \u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c 1.8 \u306a\u306e\u3067\u305d\u308c\u306b\u5408\u308f\u305b\u305f<\/p>\n<p>\u4ee5\u4e0b\u306b\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u8a73\u7d30\u3092\u8a18\u8f09\u3059\u308b<\/p>\n<h2>\u8a2d\u5b9a\u7b49<\/h2>\n<h3>build.gradle<\/h3>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nplugins {\n    id java\n}\n\ngroup jp.bizen\nversion 1.0\n\nsourceCompatibility = 1.8\n\nrepositories {\n    mavenCentral()\n}\n<\/pre>\n<h3>Main.java<\/h3>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\npackage jp.bizen;\n\npublic class Main {\n    public static void main(String&#x5B;] args) {\n        System.out.println(123);\n    }\n}\n<\/pre>\n<h2>\u305d\u306e\u4ed6<\/h2>\n<h3>targetCompatibility \u306e\u8a2d\u5b9a<\/h3>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nInformation:java: javacTask: \u30bd\u30fc\u30b9\u30fb\u30ea\u30ea\u30fc\u30b98\u306b\u306f\u30bf\u30fc\u30b2\u30c3\u30c8\u30fb\u30ea\u30ea\u30fc\u30b91.8\u304c\u5fc5\u8981\u3067\u3059\n<\/pre>\n<p>\u3053\u3093\u306a\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u3042\u3063\u305f\u306e\u3067\u3001targetCompatibility \u3092\u8ffd\u52a0\u3057\u3066 1.8 \u306b\u3057\u305f\u304c<strong>\u89e3\u6c7a\u3057\u306a\u304b\u3063\u305f<\/strong><\/p>\n<h2>\u6700\u5f8c\u306b<\/h2>\n<p>\u73fe\u5834\u304b\u3089\u306f \u4ee5\u4e0a\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6982\u8981 \u307b\u307c\u4f5c\u308a\u305f\u3066\u306a\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u30d3\u30eb\u30c9\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u51fa\u3066\u5931\u6557\u3059\u308b Information:java: javacTask: \u30bd\u30fc\u30b9\u30fb\u30ea\u30ea\u30fc\u30b98\u306b\u306f\u30bf\u30fc\u30b2\u30c3\u30c8\u30fb\u30ea\u30ea\u30fc\u30b91.8\u304c\u5fc5\u8981\u3067\u3059 Information [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[40,43,31,44],"tags":[],"class_list":["post-711","post","type-post","status-publish","format-standard","hentry","category-editor","category-intellij","category-java","category-pl"],"_links":{"self":[{"href":"https:\/\/www.nukoneko.info\/blog\/index.php?rest_route=\/wp\/v2\/posts\/711","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.nukoneko.info\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.nukoneko.info\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.nukoneko.info\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.nukoneko.info\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=711"}],"version-history":[{"count":5,"href":"https:\/\/www.nukoneko.info\/blog\/index.php?rest_route=\/wp\/v2\/posts\/711\/revisions"}],"predecessor-version":[{"id":728,"href":"https:\/\/www.nukoneko.info\/blog\/index.php?rest_route=\/wp\/v2\/posts\/711\/revisions\/728"}],"wp:attachment":[{"href":"https:\/\/www.nukoneko.info\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=711"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.nukoneko.info\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=711"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.nukoneko.info\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=711"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}