{"action":"opened","issue":{"url":"https://api.github.com/repos/robolectric/robolectric/issues/1869","labels_url":"https://api.github.com/repos/robolectric/robolectric/issues/1869/labels{/name}","comments_url":"https://api.github.com/repos/robolectric/robolectric/issues/1869/comments","events_url":"https://api.github.com/repos/robolectric/robolectric/issues/1869/events","html_url":"https://github.com/robolectric/robolectric/issues/1869","id":84877375,"number":1869,"title":"org.robolectric.shadows.ShadowResourcesTest fails pre-21","user":{"login":"jongerrish","id":6314616,"avatar_url":"https://avatars.githubusercontent.com/u/6314616?v=3","gravatar_id":"","url":"https://api.github.com/users/jongerrish","html_url":"https://github.com/jongerrish","followers_url":"https://api.github.com/users/jongerrish/followers","following_url":"https://api.github.com/users/jongerrish/following{/other_user}","gists_url":"https://api.github.com/users/jongerrish/gists{/gist_id}","starred_url":"https://api.github.com/users/jongerrish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jongerrish/subscriptions","organizations_url":"https://api.github.com/users/jongerrish/orgs","repos_url":"https://api.github.com/users/jongerrish/repos","events_url":"https://api.github.com/users/jongerrish/events{/privacy}","received_events_url":"https://api.github.com/users/jongerrish/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-04T02:50:27Z","updated_at":"2015-06-04T02:50:27Z","closed_at":null,"body":"It fails because the test makes assumptions about the wideness of the id type. Is there anything we can do about this?\r\n\r\njava.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Long\r\n\tat org.robolectric.shadows.ShadowResourcesTest.getInternalId(ShadowResourcesTest.java:528)\r\n\tat org.robolectric.shadows.ShadowResourcesTest.getThemeValueShouldSupportDereferenceResource(ShadowResourcesTest.java:414)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)\r\n\tat org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)\r\n\tat org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)\r\n\tat org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)\r\n\tat org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)\r\n\tat org.robolectric.RobolectricTestRunner$2.evaluate(RobolectricTestRunner.java:245)\r\n\tat org.robolectric.RobolectricTestRunner.runChild(RobolectricTestRunner.java:185)\r\n\tat org.robolectric.RobolectricTestRunner.runChild(RobolectricTestRunner.java:54)\r\n\tat org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)\r\n\tat org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)\r\n\tat org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)\r\n\tat org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)\r\n\tat org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)\r\n\tat org.robolectric.RobolectricTestRunner$1.evaluate(RobolectricTestRunner.java:149)\r\n\tat org.junit.runners.ParentRunner.run(ParentRunner.java:236)\r\n\tat org.junit.runners.Suite.runChild(Suite.java:128)\r\n\tat org.junit.runners.Suite.runChild(Suite.java:24)\r\n\tat org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)\r\n\tat org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)\r\n\tat org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)\r\n\tat org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)\r\n\tat org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)\r\n\tat org.junit.runners.ParentRunner.run(ParentRunner.java:236)\r\n\tat org.junit.runners.Suite.runChild(Suite.java:128)\r\n\tat org.junit.runners.Suite.runChild(Suite.java:24)\r\n\tat org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)\r\n\tat org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)\r\n\tat org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)\r\n\tat org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)\r\n\tat org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)\r\n\tat org.junit.runners.ParentRunner.run(ParentRunner.java:236)\r\n\tat org.junit.runner.JUnitCore.run(JUnitCore.java:157)\r\n\tat com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:74)\r\n\tat com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:211)\r\n\tat com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:67)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)\r\n\tat com.intellij.rt.execution.application.AppMain.main(AppMain.java:134)"}}