Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 831116 - dev-java/xml-commons-external-1.4.01-r2::gentoo failed with openjdk-11
Summary: dev-java/xml-commons-external-1.4.01-r2::gentoo failed with openjdk-11
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: jdk11
  Show dependency tree
 
Reported: 2022-01-13 09:18 UTC by Volkmar W. Pogatzki
Modified: 2022-01-19 10:02 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build log (build.log,4.94 KB, text/plain)
2022-01-13 09:18 UTC, Volkmar W. Pogatzki
Details
emerge --info (emerge --info,6.25 KB, text/plain)
2022-01-13 09:19 UTC, Volkmar W. Pogatzki
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Volkmar W. Pogatzki 2022-01-13 09:18:55 UTC
Created attachment 762066 [details]
build log

GENTOO_VM=openjdk-11  CLASSPATH="" JAVA_HOME="/usr/lib64/openjdk-11"
JAVACFLAGS="-source 1.8 -target 1.8" COMPILER=""



 * Generating JavaDoc ...
./javax/xml/xpath/XPathFactoryFinder.java:58: error: as of release 9, '_' is a keyword, and may not be used as an identifier
        } catch (Exception _) {
                           ^
./javax/xml/xpath/XPathFactoryFinder.java:122: error: as of release 9, '_' is a keyword, and may not be used as an identifier
        catch (Throwable _) {
                         ^
./javax/xml/validation/SchemaFactoryFinder.java:72: error: as of release 9, '_' is a keyword, and may not be used as an identifier
        } catch (Exception _) {
                           ^
./javax/xml/validation/SchemaFactoryFinder.java:126: error: as of release 9, '_' is a keyword, and may not be used as an identifier
        catch (Throwable _) {
                         ^
4 errors
 * ERROR: dev-java/xml-commons-external-1.4.01-r2::gentoo failed (compile phase):
 *   ejavadoc failed
 * 
 * Call stack:
 *     ebuild.sh, line  127:  Called src_compile
 *   environment, line 2327:  Called java-pkg-simple_src_compile
 *   environment, line  824:  Called ejavadoc '-d' 'target/api' '-encoding' 'UTF-8' '-docencoding' 'UTF-8' '-charset' 'UTF-8' '-quiet' '@sources.lst'
 *   environment, line  589:  Called die
 * The specific snippet of code:
 *       javadoc ${javadoc_args} "${@}" || die "ejavadoc failed"
Comment 1 Volkmar W. Pogatzki 2022-01-13 09:19:33 UTC
Created attachment 762067 [details]
emerge --info
Comment 2 Miroslav Šulc gentoo-dev 2022-01-13 09:24:52 UTC
it should be enough to fix this issue to rename the var _ to something different, e.g. ex
Comment 3 Larry the Git Cow gentoo-dev 2022-01-19 10:02:04 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f69ad493f113b84fdac42efb7996aa5b599187b4

commit f69ad493f113b84fdac42efb7996aa5b599187b4
Author:     Yuan Liao <liaoyuan@gmail.com>
AuthorDate: 2022-01-18 18:41:26 +0000
Commit:     Miroslav Šulc <fordfrog@gentoo.org>
CommitDate: 2022-01-19 10:01:19 +0000

    dev-java/xml-commons-external: Fix Javadoc on JDK 11+ for 1.4.01-r2
    
    Closes: https://bugs.gentoo.org/831116
    Signed-off-by: Yuan Liao <liaoyuan@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/23860
    Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>

 dev-java/xml-commons-external/xml-commons-external-1.4.01-r2.ebuild | 2 ++
 1 file changed, 2 insertions(+)