rodionmoiseev / c10n

A Java library, focused on making internationalisation more modular, easier to evolve and maintain, robust-to-change and IDE-friendly without excess of external tools.
Apache License 2.0
67 stars 10 forks source link

Bundle lookup key is incorrect when using interface inheritance #6

Closed rodionmoiseev closed 12 years ago

rodionmoiseev commented 12 years ago

For classes

interface A{
  String a();
}

interface B extends A{}

This works:

C10N.get(A.class).a();

this does not

C10N.get(B.class).a();

The reason is the in the second case the look-up key is wrongly set to B.a instead of correct A.a.