Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 347894 - Exception when accessing nested static classes in the jetty.xml Get element.
Summary: Exception when accessing nested static classes in the jetty.xml Get element.
Status: RESOLVED INVALID
Alias: None
Product: Jetty
Classification: RT
Component: server (show other bugs)
Version: 7.3.0   Edit
Hardware: PC Linux
: P3 minor (vote)
Target Milestone: 7.2.x   Edit
Assignee: Greg Wilkins CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-01 05:19 EDT by Gijs Peek CLA
Modified: 2011-06-22 03:12 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.