Uploaded image for project: 'ShrinkWrap'
  1. ShrinkWrap
  2. SHRINKWRAP-237

ShrinkWrap ClassLoader Caches the read Assets Inputstream

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 1.0.0-alpha-11
    • Fix Version/s: 1.0.0-alpha-12
    • Component/s: None
    • Labels:
      None
    • Environment:

      Weld 1.1.0.Beta1, Arqullian Alpha4, Seam XML Alpha3

      Description

      http://pastebin.com/3neHZ6BL

      This can be reproduced using Weld 1.1.0.Beta1, Seam XML Alpha3 and Arqullian Alpha4- create a test that attempts to add a Manifest Resources from disk to Beans.xml.

      Seam XML will attempt to load the beans file and complain that the InputStream was closed.

      @RunWith(Arquillian.class)
      public class DefaultTimeZoneTest
      {
      @Deployment
      public static JavaArchive createTestArchive()

      { return ShrinkWrap.create(JavaArchive.class, "test.jar") .addClass(DefaultTimeZoneProducer.class) .addClass(DefaultTimeZoneConfig.class) .addManifestResource("org/jboss/seam/international/test/timezone/user-timezone.xml", ArchivePaths.create("beans.xml")); }

      @Inject
      DateTimeZone timeZone;

      @Test
      public void testDefaultTimeZoneProducerDirect()

      { Assert.assertNotNull(timeZone); }

      }

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                aslak Aslak Knutsen
                Reporter:
                lincolnthree Lincoln Baxter III
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: