Obsolete
Status Update
Comments
hc...@gmail.com <hc...@gmail.com> #2
Adding analysis:
-- testArrayStoreException_store3:
This test attempts to store dummy static inner class array object in an array of type java.lang.Float[][], and is expected to throw an exception. But it does not, so test fails.
test_getByName:
1.2.3.4. is being treated as a valid IPV4 address despite trailing ".". Expected to throw UnknownHostException
Can someone please explain such behavior?
-- testArrayStoreException_store3:
This test attempts to store dummy static inner class array object in an array of type java.lang.Float[][], and is expected to throw an exception. But it does not, so test fails.
test_getByName:
1.2.3.4. is being treated as a valid IPV4 address despite trailing ".". Expected to throw UnknownHostException
Can someone please explain such behavior?
sh...@gmail.com <sh...@gmail.com> #3
someone fix this issue?
sa...@google.com <sa...@google.com> #4
Thank you for your feedback. We assure you that we are doing our best to address the issue reported, however our product team has shifted work priority that doesn't include this issue. For now, we will be closing the issue as won't fix obsolete. If this issue currently still exists, we request that you log a new issue along with latest bug report here https://goo.gl/TbMiIO .
Description
libcore.java.lang.ArrayStoreExceptionTest
-- testArrayStoreException_store3
libcore.java.net.InetAddressTest
--test_getByName
- Steps to reproduce the problem
1. Launch Intel emulator for Jelly bean 4.1.1 (API 16)
2. Launch CTS v. 4.1_r1 or 4.1_r3
3. run cts --class libcore.java.lang.ArrayStoreExceptionTest
4. run cts --class libcore.java.net.InetAddressTest
- What happened.
The tests failed
- What you think the correct behavior should be.
The tests should pass.
Logcat error for libcore.java.lang.ArrayStoreExceptionTest-- testArrayStoreException_store3:
04-24 09:59:05.591 1156 1168 I TestRunner: junit.framework.AssertionFailedError
04-24 09:59:05.591 1156 1168 I TestRunner: at junit.framework.Assert.fail(Assert.java:48)
04-24 09:59:05.591 1156 1168 I TestRunner: at junit.framework.Assert.fail(Assert.java:56)
04-24 09:59:05.591 1156 1168 I TestRunner: at libcore.java.lang.ArrayStoreExceptionTest.testArrayStoreException_store3(ArrayStoreExceptionTest.java:54)
04-24 09:59:05.591 1156 1168 I TestRunner: at java.lang.reflect.Method.invokeNative(Native Method)
04-24 09:59:05.591 1156 1168 I TestRunner: at java.lang.reflect.Method.invoke(Method.java:511)
04-24 09:59:05.591 1156 1168 I TestRunner: at junit.framework.TestCase.runTest(TestCase.java:168)
Logcat error for libcore.java.net.InetAddressTest--test_getByName:
04-24 10:02:27.343 1156 1168 I TestRunner: failed: test_getByName(libcore.java.net.InetAddressTest)
04-24 10:02:27.343 1156 1168 I TestRunner: ----- begin exception -----
04-24 10:02:27.343 1156 1168 I TestRunner:
04-24 10:02:27.343 1156 1168 I TestRunner: junit.framework.AssertionFailedError: 1.2.3.4.
04-24 10:02:27.343 1156 1168 I TestRunner: at junit.framework.Assert.fail(Assert.java:50)
04-24 10:02:27.343 1156 1168 I TestRunner: at libcore.java.net.InetAddressTest.test_getByName(InetAddressTest.java:169)
04-24 10:02:27.343 1156 1168 I TestRunner: at java.lang.reflect.Method.invokeNative(Native Method)
04-24 10:02:27.343 1156 1168 I TestRunner: at java.lang.reflect.Method.invoke(Method.java:511)
04-24 10:02:27.343 1156 1168 I TestRunner: at junit.framework.TestCase.runTest(TestCase.java:168)