summaryrefslogtreecommitdiffstats
path: root/SCons/Tool/JavaCommon.py
Commit message (Collapse)AuthorAgeFilesLines
* Add support for Java 21Mats Wichmann2023-10-171-0/+2
| | | | | | Released in Sept 2023 - LTS version. Signed-off-by: Mats Wichmann <mats@linux.com>
* "Modernize" to Python 3.6 via toolMats Wichmann2023-08-041-1/+1
| | | | | | | | | | | | | | | | | | | | | $ pyupgrade --py36-plus $(<filelist) Here's mostly what it's done: - No more 'stringliteral'.encode('utf-8'): now b'stringliteral' - No more unicode literals - the default open mode is 'r', leaves out if default - some f-string conversions (if shorter) - catch OSError instead of subclasses - no more mention of "object" - generator expression instead of list comp. when safe - a few tests had a shebang but actually began with blank line - remove coding: utf-8 comment, per pep 3120 this is the default now Manually - if a file in test/ was modified, then did the copyright header conversion. Signed-off-by: Mats Wichmann <mats@linux.com>
* Add Java 18, 19, 20 to support list.Mats Wichmann2023-07-251-0/+6
| | | | Signed-off-by: Mats Wichmann <mats@linux.com>
* Followon to PR #4348: more bool fixesMats Wichmann2023-06-161-2/+2
| | | | | | | | | | | | | | Manually fixed up some things related to bool, e.g. simple functions which just did "return 1" were interpreted by the tool as returning int, when bool was really the intent. Functions/methods named like "is*", "has*", "exists", "rexists" (and others) are now pretty consistently marked as returning bool. A couple of minor alignments of branched definitions, and a couple of docstring adjustments made. If Tools which had old heading style were touched, they got the new style. Signed-off-by: Mats Wichmann <mats@linux.com>
* Add some cheap return and parameter annotationsMats Wichmann2023-05-011-14/+14
| | | | | | | | | | | | | | | | | Use: https://github.com/JelleZijlstra/autotyping to add "safe" return annotations. Where a parameter has a default value that is an obvious scalar type (bool, int, str, etc.) add those annotations as well. Also fixed two small bugs that popped up when sanity-checking with mypy. One in FortranCommon, where a return had been previously annotated to be a tuple of Action, which should be ActionBase - Action is the factory function, not the base class. The other was a typo in the error raised in _add_cppdefines - the message was formatted with the value of "define" which should have been "defines". Signed-off-by: Mats Wichmann <mats@linux.com>
* Add userguide update on javah as wellMats Wichmann2021-11-051-2/+5
| | | | | | Also add more linux locations for Java headers (old saved patch) Signed-off-by: Mats Wichmann <mats@linux.com>
* Update Java support for more versionsMats Wichmann2021-11-041-45/+113
| | | | | | | | | | * on Windows, detect more possible JDK locations. * On all platforms, more Java versions (up to 17.0 now). * Add some docu on version selection and on JavaH tool in light of javah command dropped since 10.0. * Try to be better about preserving user's passed-in JAVA* consvars. Signed-off-by: Mats Wichmann <mats@linux.com>
* fix issue where java parses class incorrectly from lambdas after newDaniel2020-08-141-1/+2
|
* classes no longer explicitly inherit from objectMats Wichmann2020-05-241-7/+7
| | | | | | In Python3 this is the default. Signed-off-by: Mats Wichmann <mats@linux.com>
* Reorganize the repo. Moved src/engine/SCons to ./SCons to be more in line ↵William Deegan2020-05-061-0/+512
with current python packaging practices