Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 347894

Summary: Exception when accessing nested static classes in the jetty.xml Get element.
Product: [RT] Jetty Reporter: Gijs Peek <gijs.peek>
Component: serverAssignee: Greg Wilkins <gregw>
Status: RESOLVED INVALID QA Contact:
Severity: minor    
Priority: P3 CC: jetty-inbox
Version: 7.3.0   
Target Milestone: 7.2.x   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Gijs Peek CLA 2011-06-01 05:19:48 EDT
Attempting to use a nested static class in a Get element in jetty.xml yields a ClassNotFoundException. For instance, specifying:

<Get class="java.lang.Character.UnicodeBlock" name="LATIN_EXTENDED_ADDITIONAL"/>

in a jetty.xml file will throw a java.lang.ClassNotFoundException: java.lang.Character.UnicodeBlock.
Comment 1 Greg Wilkins CLA 2011-06-22 02:01:06 EDT
Use

<Get class="java.lang.Character$UnicodeBlock" name="LATIN_EXTENDED_ADDITIONAL"/>

cheers
Comment 2 Gijs Peek CLA 2011-06-22 03:12:17 EDT
Ah, of course. Thank you.