Menu

#14 class.method() usage case not detected

open
nobody
mangen (2)
3
2005-06-17
2005-06-17
rob walker
No

The following usage case is not handled correctly by
mangen:

MyClass.MyInnerClass.class.getMethod("getValue", null)

It results in an incorrect import for a package with
the MyClass name as the last component of the package name.

The workaround is to use a local rule to ignore the
incorrect package name being identified e.g.

Name: com/ascert/openosgi/mangen
mangen-rule-0: Ignore imports(MyPkg\.MySubPkg\.MyClass)

Discussion


Log in to post a comment.