Community
Participate
Working Groups
From the javadoc of CompletionProposal#getDeclarationSignature(): * <li><code>PACKAGE_REF</code> - dot-based package * signature of the package that is referenced</li> ... * @see Signature But class Signature does not offer methods to decode package signatures.
Actually, the signature of a package seems to be equivalent to the package name. If this is a general rule, then we don't need new API. But this should be documented (maybe best in CompletionProposal#getDeclarationSignature() as well as in Signature).
dot-based package signature (eg: 'java.lang') does not need to be decoded, that's just the package name. Type signature (eg: 'Lp/q/X<Lp/Y;>.Z;')and method signature (eq: '(Lp/q/X)V') are like classfile signature and can be decoded by class Signature. Jim - could we change javadoc of getDeclarationSignaure()or replace inside javadoc 'dot-based package signature' by 'dot-based package name' to be less ambigous ?
I've clarified specs for CompletionProposal as suggested. Updated build notes. Closing.
Verified for 3.1 M4 using build I200412140800.