MarkupResourceStream unexpectedly loads markup class
----------------------------------------------------

                 Key: WICKET-1681
                 URL: https://issues.apache.org/jira/browse/WICKET-1681
             Project: Wicket
          Issue Type: Bug
    Affects Versions: 1.3.3
         Environment: OSGi / Eclipse 3.3.0 / Java 1.6.0
            Reporter: Nick Giles


The getMarkupClass method in MarkupResourceStream tries to load the markup 
class from its name. In some classloading environments, notably OSGi in our 
case, the base class may not be accessible, only the relevant interfaces or 
superclass. This was actually discovered because InheritedMarkupMarkupLoader 
was throwing a null pointer from the checkForMarkupInheritance method when 
looking for the base markup, so tracing the issue wasn't straightforward either.

Since the actual Class object is passed in to the constructor of the stream, a 
reference to that could be stored, and then classloading could be avoided

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to