maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Williams (JIRA)" <j...@codehaus.org>
Subject [jira] Commented: (MSUREFIRE-169) resource not found through getResourceAsStream (works fine in Eclipse junit test runner)
Date Mon, 04 Dec 2006 00:38:41 GMT
    [ http://jira.codehaus.org/browse/MSUREFIRE-169?page=comments#action_81683 ] 
            
Andrew Williams commented on MSUREFIRE-169:
-------------------------------------------

Whilst what you say is true I am not entirely certain it _should_ work
The BytecodeClassLoader that you define does no lookups of it's own and does not delegate
to a parent classloader.

replacing the line "new BytecodeClassLoader()" in BytecodeClassLoaderTest to "getClass().getClassLoader()"
(with the relevant field types changed) the tests wok.

(If you get a null pointer exception then you need to make sure you do not force the use of
getParent(), as getParent can return null quite validly)

> resource not found through getResourceAsStream (works fine in Eclipse junit test runner)
> ----------------------------------------------------------------------------------------
>
>                 Key: MSUREFIRE-169
>                 URL: http://jira.codehaus.org/browse/MSUREFIRE-169
>             Project: Maven 2.x Surefire Plugin
>          Issue Type: Bug
>            Reporter: Valerio Schiavoni
>         Attachments: classloader-within-junittest.tgz
>
>
> Running the attached test within eclipse, all tests pass. Running through mvn test, there
are 2 failures.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message