-
Bug
-
Resolution: Fixed
-
P4
-
16
-
b16
In file included from ./src/hotspot/share/classfile/classLoader.cpp:40:
./src/hotspot/share/classfile/systemDictionaryShared.hpp:323:90: error: no viable conversion from returned value of type 'long' to function return type 'Handle'
static Handle create_jar_manifest(const char* man, size_t size, TRAPS) NOT_CDS_RETURN_(NULL);
^~~~
/Library/Developer/CommandLineTools/usr/lib/clang/11.0.0/include/stddef.h:100:18: note: expanded from macro 'NULL'
# define NULL __null
^~~~~~
./src/hotspot/share/utilities/macros.hpp:119:40: note: expanded from macro 'NOT_CDS_RETURN_'
#define NOT_CDS_RETURN_(code) { return code; }
^~~~
./src/hotspot/share/runtime/handles.hpp:65:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'long' to 'const Handle &' for 1st argument
class Handle {
^
./src/hotspot/share/runtime/handles.hpp:65:7: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'long' to 'Handle &&' for 1st argument
1 error generated.
./src/hotspot/share/classfile/systemDictionaryShared.hpp:323:90: error: no viable conversion from returned value of type 'long' to function return type 'Handle'
static Handle create_jar_manifest(const char* man, size_t size, TRAPS) NOT_CDS_RETURN_(NULL);
^~~~
/Library/Developer/CommandLineTools/usr/lib/clang/11.0.0/include/stddef.h:100:18: note: expanded from macro 'NULL'
# define NULL __null
^~~~~~
./src/hotspot/share/utilities/macros.hpp:119:40: note: expanded from macro 'NOT_CDS_RETURN_'
#define NOT_CDS_RETURN_(code) { return code; }
^~~~
./src/hotspot/share/runtime/handles.hpp:65:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'long' to 'const Handle &' for 1st argument
class Handle {
^
./src/hotspot/share/runtime/handles.hpp:65:7: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'long' to 'Handle &&' for 1st argument
1 error generated.
- relates to
-
JDK-8252689 Classes are loaded from jrt:/java.base even when CDS is used
-
- Resolved
-