--- jaxb-ri/xjc/src/com/sun/tools/xjc/reader/decorator/RoleBasedDecorator.java 2005-09-10 20:20:49.000000000 +0200 +++ jaxb-ri/xjc/src/com/sun/tools/xjc/reader/decorator/RoleBasedDecorator.java-gil 2011-07-21 15:19:57.627070718 +0200 @@ -139,7 +139,7 @@ decideName(state, exp, role, "", state.getLocation()), null, type, - reader.locator); + reader.getLocator()); roleExp = fi; if( delegation!=null && delegation.equals("true"))