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 From 25f25430c340d5bdd107a6098e684880cec54926 Mon Sep 17 00:00:00 2001 From: albert-github Date: Mon, 24 May 2021 14:44:56 +0200 Subject: issue #8541 Javadoc: external links to classes in java.lang are not resolved A `::` at the end is not necessary, intenmtion was to use make explicitly, by ".*` that all subpackages were used but that is not necessary. --- src/scanner.l | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scanner.l b/src/scanner.l index b5a9c05..f3d0bc3 100644 --- a/src/scanner.l +++ b/src/scanner.l @@ -7563,8 +7563,8 @@ static void parseMain(yyscan_t yyscanner, } else if ( yyextra->insideJava ) { - QCString scope="java.lang.*"; - yyextra->current->name=removeRedundantWhiteSpace(substitute(scope.left(scope.length()-1),".","::")); + QCString scope="java.lang"; + yyextra->current->name=removeRedundantWhiteSpace(substitute(scope,".","::")); yyextra->current->fileName = yyextra->yyFileName; yyextra->current->section=Entry::USINGDIR_SEC; yyextra->current_root->moveToSubEntryAndRefresh(yyextra->current); -- cgit v0.12