From 333d6e67cde82ceed413fa7fb2e18c1232279e1b Mon Sep 17 00:00:00 2001 From: albert-github Date: Tue, 11 May 2021 15:52:50 +0200 Subject: issue #8541 avadoc: external links to classes in java.lang are not resolved MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adding the default packages from "java.lang" From the standard "The Java® Language, Specification, Java SE 16 Edition" ,Chapter 7, Packages and Modules: > Code in a compilation unit automatically has access to all classes and interfaces > declared in its package and also automatically imports all of the public classes and > interfaces declared in the predefined package java.lang. --- src/scanner.l | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/scanner.l b/src/scanner.l index 00fa3b4..b5a9c05 100644 --- a/src/scanner.l +++ b/src/scanner.l @@ -7561,6 +7561,16 @@ static void parseMain(yyscan_t yyscanner, { BEGIN( FindMembersPHP ); } + else if ( yyextra->insideJava ) + { + QCString scope="java.lang.*"; + yyextra->current->name=removeRedundantWhiteSpace(substitute(scope.left(scope.length()-1),".","::")); + yyextra->current->fileName = yyextra->yyFileName; + yyextra->current->section=Entry::USINGDIR_SEC; + yyextra->current_root->moveToSubEntryAndRefresh(yyextra->current); + initEntry(yyscanner); + BEGIN( FindMembers ); + } else { BEGIN( FindMembers ); -- cgit v0.12