You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@abdera.apache.org by "Rob Evans (JIRA)" <ji...@apache.org> on 2007/06/19 08:08:25 UTC
[jira] Created: (ABDERA-50) jdk 1.5 instructions in 1.4 build of
0.2.2
jdk 1.5 instructions in 1.4 build of 0.2.2
-------------------------------------------
Key: ABDERA-50
URL: https://issues.apache.org/jira/browse/ABDERA-50
Project: Abdera
Issue Type: Bug
Affects Versions: 0.2.2
Environment: jdk1.4
Reporter: Rob Evans
Fix For: 0.2.2
I get the following Exception when using the jdk1.4 build of 0.2.2
TRACE
============================================================
java.lang.NoSuchMethodError: java.lang.String.contains(Ljava/lang/CharSequence;)Z
at org.apache.abdera.protocol.EntityTag.checkTag(EntityTag.java:121)
at org.apache.abdera.protocol.EntityTag.<init>(EntityTag.java:115)
at org.apache.abdera.protocol.EntityTag.parse(EntityTag.java:37)
at UtilityTest.testEntityTag(UtilityTest.java:9)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
The class version looks okay at 48 ( jdk 48 ) but String.contains() is still present. Oh, I've tried both retroweaver-rt version 1.2.4 and 1.2.3
CLASS INFO
===============
// class version 48.0 (48)
// access flags 33
public class org/apache/abdera/protocol/EntityTag {
// access flags 2
private checkTag(Ljava/lang/String;)V
L0 (0)
LINENUMBER 121 L0
ALOAD 1
LDC "\""
INVOKEVIRTUAL java/lang/String.contains(Ljava/lang/CharSequence;)Z
IFEQ L1
Unit test that causes the error
---------------------------------------------------
import junit.framework.TestCase;
import org.apache.abdera.protocol.EntityTag;
public class UtilityTest extends TestCase {
public static void testEntityTag() throws Throwable {
try {
EntityTag etag1 = EntityTag.parse("\"foo\"");
assertEquals(etag1.getTag(), "foo");
assertFalse(etag1.isWeak());
} catch (Throwable e) {
e.printStackTrace();
throw e;
}
}
}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (ABDERA-50) jdk 1.5 instructions in 1.4 build of
0.2.2
Posted by "James M Snell (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/ABDERA-50?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
James M Snell resolved ABDERA-50.
---------------------------------
Resolution: Fixed
Fix committed
> jdk 1.5 instructions in 1.4 build of 0.2.2
> -------------------------------------------
>
> Key: ABDERA-50
> URL: https://issues.apache.org/jira/browse/ABDERA-50
> Project: Abdera
> Issue Type: Bug
> Affects Versions: 0.2.2
> Environment: jdk1.4
> Reporter: Rob Evans
> Fix For: 0.2.2
>
>
> I get the following Exception when using the jdk1.4 build of 0.2.2
> TRACE
> ============================================================
> java.lang.NoSuchMethodError: java.lang.String.contains(Ljava/lang/CharSequence;)Z
> at org.apache.abdera.protocol.EntityTag.checkTag(EntityTag.java:121)
> at org.apache.abdera.protocol.EntityTag.<init>(EntityTag.java:115)
> at org.apache.abdera.protocol.EntityTag.parse(EntityTag.java:37)
> at UtilityTest.testEntityTag(UtilityTest.java:9)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:324)
> at junit.framework.TestCase.runTest(TestCase.java:154)
> at junit.framework.TestCase.runBare(TestCase.java:127)
> at junit.framework.TestResult$1.protect(TestResult.java:106)
> at junit.framework.TestResult.runProtected(TestResult.java:124)
> at junit.framework.TestResult.run(TestResult.java:109)
> at junit.framework.TestCase.run(TestCase.java:118)
> at junit.framework.TestSuite.runTest(TestSuite.java:208)
> at junit.framework.TestSuite.run(TestSuite.java:203)
> at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128)
> at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
> The class version looks okay at 48 ( jdk 48 ) but String.contains() is still present. Oh, I've tried both retroweaver-rt version 1.2.4 and 1.2.3
> CLASS INFO
> ===============
> // class version 48.0 (48)
> // access flags 33
> public class org/apache/abdera/protocol/EntityTag {
> // access flags 2
> private checkTag(Ljava/lang/String;)V
> L0 (0)
> LINENUMBER 121 L0
> ALOAD 1
> LDC "\""
> INVOKEVIRTUAL java/lang/String.contains(Ljava/lang/CharSequence;)Z
> IFEQ L1
> Unit test that causes the error
> ---------------------------------------------------
> import junit.framework.TestCase;
> import org.apache.abdera.protocol.EntityTag;
> public class UtilityTest extends TestCase {
> public static void testEntityTag() throws Throwable {
> try {
> EntityTag etag1 = EntityTag.parse("\"foo\"");
> assertEquals(etag1.getTag(), "foo");
> assertFalse(etag1.isWeak());
> } catch (Throwable e) {
> e.printStackTrace();
> throw e;
> }
> }
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.