{"action":"closed","issue":{"url":"https://api.github.com/repos/GlowstoneMC/Glowstone/issues/866","repository_url":"https://api.github.com/repos/GlowstoneMC/Glowstone","labels_url":"https://api.github.com/repos/GlowstoneMC/Glowstone/issues/866/labels{/name}","comments_url":"https://api.github.com/repos/GlowstoneMC/Glowstone/issues/866/comments","events_url":"https://api.github.com/repos/GlowstoneMC/Glowstone/issues/866/events","html_url":"https://github.com/GlowstoneMC/Glowstone/issues/866","id":305766086,"number":866,"title":"Incompatibility with Java 8, when using CircleCI build","user":{"login":"momothereal","id":6775216,"avatar_url":"https://avatars0.githubusercontent.com/u/6775216?v=4","gravatar_id":"","url":"https://api.github.com/users/momothereal","html_url":"https://github.com/momothereal","followers_url":"https://api.github.com/users/momothereal/followers","following_url":"https://api.github.com/users/momothereal/following{/other_user}","gists_url":"https://api.github.com/users/momothereal/gists{/gist_id}","starred_url":"https://api.github.com/users/momothereal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/momothereal/subscriptions","organizations_url":"https://api.github.com/users/momothereal/orgs","repos_url":"https://api.github.com/users/momothereal/repos","events_url":"https://api.github.com/users/momothereal/events{/privacy}","received_events_url":"https://api.github.com/users/momothereal/received_events","type":"User","site_admin":false},"labels":[{"id":198749781,"url":"https://api.github.com/repos/GlowstoneMC/Glowstone/labels/Category:%20server%20feature","name":"Category: server feature","color":"0288d1","default":false},{"id":198749103,"url":"https://api.github.com/repos/GlowstoneMC/Glowstone/labels/Priority:%20crash","name":"Priority: crash","color":"b71c1c","default":false},{"id":196108316,"url":"https://api.github.com/repos/GlowstoneMC/Glowstone/labels/Status:%20help%20wanted","name":"Status: help wanted","color":"b0bec5","default":false},{"id":642527984,"url":"https://api.github.com/repos/GlowstoneMC/Glowstone/labels/Type:%20bug","name":"Type: bug","color":"f47442","default":false}],"state":"closed","locked":false,"assignee":{"login":"Pr0methean","id":4961925,"avatar_url":"https://avatars3.githubusercontent.com/u/4961925?v=4","gravatar_id":"","url":"https://api.github.com/users/Pr0methean","html_url":"https://github.com/Pr0methean","followers_url":"https://api.github.com/users/Pr0methean/followers","following_url":"https://api.github.com/users/Pr0methean/following{/other_user}","gists_url":"https://api.github.com/users/Pr0methean/gists{/gist_id}","starred_url":"https://api.github.com/users/Pr0methean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pr0methean/subscriptions","organizations_url":"https://api.github.com/users/Pr0methean/orgs","repos_url":"https://api.github.com/users/Pr0methean/repos","events_url":"https://api.github.com/users/Pr0methean/events{/privacy}","received_events_url":"https://api.github.com/users/Pr0methean/received_events","type":"User","site_admin":false},"assignees":[{"login":"Pr0methean","id":4961925,"avatar_url":"https://avatars3.githubusercontent.com/u/4961925?v=4","gravatar_id":"","url":"https://api.github.com/users/Pr0methean","html_url":"https://github.com/Pr0methean","followers_url":"https://api.github.com/users/Pr0methean/followers","following_url":"https://api.github.com/users/Pr0methean/following{/other_user}","gists_url":"https://api.github.com/users/Pr0methean/gists{/gist_id}","starred_url":"https://api.github.com/users/Pr0methean/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pr0methean/subscriptions","organizations_url":"https://api.github.com/users/Pr0methean/orgs","repos_url":"https://api.github.com/users/Pr0methean/repos","events_url":"https://api.github.com/users/Pr0methean/events{/privacy}","received_events_url":"https://api.github.com/users/Pr0methean/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2018-03-16T00:41:06Z","updated_at":"2018-03-19T02:12:39Z","closed_at":"2018-03-19T02:12:39Z","author_association":"OWNER","body":"Using Java 8 update 111. I downloaded build `bd275e2` from CircleCI, where builds use **Java 9**.\r\n\r\nI get this exception:\r\n```\r\ncom.google.common.util.concurrent.ExecutionError: java.lang.NoSuchMethodError: java.nio.ByteBuffer.clear()Ljava/nio/ByteBuffer;\r\n        at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2215)\r\n        at com.google.common.cache.LocalCache.get(LocalCache.java:4154)\r\n        at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4158)\r\n        at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:5147)\r\n        at com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:5153)\r\n        at net.glowstone.io.anvil.RegionFileCache.getRegionFile(RegionFileCache.java:89)\r\n        at net.glowstone.io.anvil.AnvilChunkIoService.read(AnvilChunkIoService.java:55)\r\n        at net.glowstone.chunk.ChunkManager.loadChunk(ChunkManager.java:151)\r\n        at net.glowstone.chunk.GlowChunk.load(GlowChunk.java:210)\r\n        at net.glowstone.chunk.GlowChunk.load(GlowChunk.java:205)\r\n        at net.glowstone.chunk.GlowChunk.getHeight(GlowChunk.java:639)\r\n        at net.glowstone.GlowWorld.getHighestBlockYAt(GlowWorld.java:1185)\r\n        at net.glowstone.GlowWorld.getHighestBlockAt(GlowWorld.java:1190)\r\n        at net.glowstone.generator.GlowChunkGenerator.canSpawn(GlowChunkGenerator.java:68)\r\nCaused by: java.lang.NoSuchMethodError: java.nio.ByteBuffer.clear()Ljava/nio/ByteBuffer;\r\n        at net.glowstone.io.anvil.RegionFile.<init>(RegionFile.java:184)\r\n        at net.glowstone.io.anvil.RegionFileCache$1.load(RegionFileCache.java:65)\r\n        at net.glowstone.io.anvil.RegionFileCache$1.load(RegionFileCache.java:62)\r\n        at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3716)\r\n        at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2424)\r\n        at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2298)\r\n        at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2211)\r\n        ... 20 more\r\n```\r\n\r\nIt appears that building using Java 9 **does** cause issues when running on Java 8, even if the pom files specifies bytecode version for 1.8. `java.nio.ByteBuffer.clear()Ljava/nio/ByteBuffer` was introduced in 1.9, from what I understand.\r\n\r\nProbably since 1885359b8a62b2630e56982c60106b916a5d8cdf\r\n\r\nWorkaround: Build locally using Java 8 instead, or use Java 9."}}
{"actor":{"display_login":"momothereal"}}