Automatically add add-opens if Java version >= 9

Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
TheKodeToad
2022-12-15 15:28:17 +00:00
parent 8a6776731a
commit 87bcefd08a
4 changed files with 13 additions and 12 deletions

View File

@ -50,11 +50,11 @@ QString JavaVersion::toString()
bool JavaVersion::requiresPermGen()
{
if(m_parseable)
{
return m_major < 8;
}
return true;
return !m_parseable || m_major < 8;
}
bool JavaVersion::isModular() {
return m_parseable && m_major >= 9;
}
bool JavaVersion::operator<(const JavaVersion &rhs)

View File

@ -25,6 +25,8 @@ public:
bool requiresPermGen();
bool isModular();
QString toString();
int major()