Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use JLS23 as latest compliance level in AST #465

Closed
wants to merge 724 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
724 commits
Select commit Hold shift + click to select a range
61e8304
Partial fix for ASTConverterTest2.test0443 - handle block in abstract…
May 6, 2024
f25da69
Partial fix for ASTConverterTest2.test0451 - return type incorrect fo…
May 6, 2024
96503fa
Partial fix for ASTConverterTest2.test0467 - assert statement message…
May 6, 2024
da861d2
Partial fix for ASTConverterTest2.test0493 - error in jls2 with two-d…
May 6, 2024
6f8542a
Partial fix for ASTConverterTest2.test0495 - error when 3d-array of s…
May 6, 2024
01713d9
Partial fix for ASTConverterTest2.test0498 - error with 2d array Clas…
May 7, 2024
6ff278d
Partial fix for ASTConverterTest2.test0505 - name "error" cannot be m…
May 7, 2024
a35e36c
Partial fix for ASTConverterTest2.test0512 - missing return type with…
May 7, 2024
7830183
Fix for ASTConverterTest2.test0569 - javadoc assigned to wrong node
May 8, 2024
296fc99
Fix for ASTConverterTest2.test0610 - return type for constructor not …
May 8, 2024
9582ac6
Javadoc error on jls2 - comment empty
May 9, 2024
2ffeb03
Partial fix for test0472 re javadoc blowing away stack
May 9, 2024
f2c7126
[javac] AST conversion for guarded record patterns
datho7561 May 7, 2024
7d5dbc2
[Javac] Fix Javadoc Link
mickaelistria May 10, 2024
ce9439c
[javac] fix quickfix to implement inherited abstract methods
datho7561 May 7, 2024
2559870
[javac] improvements to token-based error highlighting
datho7561 May 9, 2024
e071006
[javac] several small bindings fixes based on ASTConverterTest results
datho7561 May 10, 2024
7cc2286
Improve Javadoc link conversion
mickaelistria May 11, 2024
c905a9d
JavacProblemConverter reuses context
mickaelistria May 13, 2024
72b1143
Support for try-with-resources
mickaelistria May 13, 2024
41e0fd5
Fix ranges for diagnostics on unnamed classes
mickaelistria May 13, 2024
889058e
Some support for inheritDoc
mickaelistria May 13, 2024
a0a505a
[javac] fix syntax highlighting of parameters
datho7561 May 13, 2024
10a01a5
Null-check for bindings
mickaelistria May 14, 2024
3629392
Fix NPE
mickaelistria May 14, 2024
fc74de0
Improve compiling multiple files
mickaelistria May 14, 2024
c0a6398
[javac] canonicalize bindings
datho7561 May 14, 2024
357f03b
Some fixes in DOMToIndex
mickaelistria May 15, 2024
d4bc72f
Support DCErroneous and create problem markers for it
akurtakov May 15, 2024
a268681
[javac] more binding improvements
datho7561 May 15, 2024
d63b14d
[javac] modify Jenkinsfile to run javac test bundle
datho7561 May 13, 2024
afb8d8d
[DOM-based] Still better indexer support
mickaelistria May 16, 2024
a3677c4
[javac] fresh new batch of binding fixes
datho7561 May 16, 2024
273d5eb
DOMToIndex: fix isSecondary, index some Javadoc tags
mickaelistria May 17, 2024
5568d2d
add support for method parameter completions
gayanper May 16, 2024
189db8b
fix review comments
gayanper May 17, 2024
eea514a
DOMToIndex: restore statements
mickaelistria May 17, 2024
625d0fb
fill in record components in record declaration
gayanper May 17, 2024
27316ed
Report Javadoc problems as warnings for most severe
akurtakov May 17, 2024
92a3713
[DOM based index] Prevent some deadlock
mickaelistria May 21, 2024
a8e594f
Fix JavacMethodBinding for non-DOM references
mickaelistria May 21, 2024
c4821f1
Endless loop - nextToken() is identical for ever and ever
May 10, 2024
821cf96
Fix for test0126 - String[] v[] not represented correctly when part o…
May 10, 2024
6c125b8
Fix for test0126 - String v[] not represented correctly when part of …
May 10, 2024
b37695f
Fix for test0314 - String v[] has off-by-one error
May 10, 2024
22c13e9
Partial Fix for test0321 - new Object[][] has off-by-one error in dim…
May 10, 2024
26973a4
Partially fix testBug531714_015 - switch(i) { case 1 -> list } needs …
May 14, 2024
7f841f1
Fix testBug519493_002 - TypeParameter needs a type binding
May 14, 2024
70a448c
Add support for Module Binding
May 15, 2024
edffd29
Fix testTypeBindingMethods - type binding parameters are wrong
May 15, 2024
0110799
Fix testBug526534_0001 - class cast exception
May 15, 2024
e43e82c
Fix testBug519493_006 - module binding
May 16, 2024
ca2b9a0
Fix testBug519493_005 - type binding needs access to module
May 16, 2024
141eeda
More work on JavacModuleBinding regarding key and annotations
May 20, 2024
1bce6e7
partial fix to testBug497719_0001 - modifiers missing on try with res…
May 21, 2024
22e33ba
Fix ASTConverter15JLS4Test.test0140 dom portion
May 21, 2024
0b717f9
Fix ASTConverter15JLS4Test.test0140 binding portion
May 21, 2024
5692ba6
[javac] More binding fixes
datho7561 May 21, 2024
294f1ca
Handle version javadoc tag conversion
akurtakov May 22, 2024
4a316a7
Set problem severity according to JDT settings
mickaelistria May 22, 2024
d5e7b9b
Support comment in Javadoc conversion
akurtakov May 23, 2024
58d574d
Support @value javadoc inline tag
akurtakov May 23, 2024
1d0417a
[javac] adjust diagnostic range for error targetting method
snjeza May 23, 2024
9e28d12
Process project deps sourcepath and classpath
mickaelistria May 23, 2024
f9d7056
Do not convert compiler.warn.dangling.doc.comment
akurtakov May 23, 2024
2b1094b
Add formatter settings
akurtakov May 24, 2024
468268e
Ensure single instances of each binding
mickaelistria May 24, 2024
8885659
MethodBinding fix related to JLS compliance, QualifiedName fix
datho7561 May 23, 2024
98bae8e
Some improvements to JavacBindingResolver
mickaelistria May 27, 2024
222abcd
Remove refs to AbstractUnnamedTypeDeclaration
mickaelistria May 27, 2024
041fa94
Some fix in JavacMethodBinding->IMethod resolution
mickaelistria May 27, 2024
7cde73b
Improve some binding->element resolution
mickaelistria May 27, 2024
3550d0c
Don't use scanner tokens if the diagnostic length is non-zero
datho7561 May 27, 2024
2aa7789
[Jenkins] Avoid crashing build on test failure
mickaelistria May 28, 2024
5b095da
Use Java 23 as latest with more consistency
akurtakov May 28, 2024
b6e5175
improve comment/javadoc positions
mickaelistria May 28, 2024
97187bb
Fix typo
mickaelistria May 29, 2024
8358592
Fix ASTConverter15JLS8Test.test0002 - method binding for annotation type
May 22, 2024
fa5d0fb
Fix test0026 in ASTConverter15JLS8Test
May 22, 2024
ccf18f9
Fix test0027 in ASTConverter15JLS8Test
May 22, 2024
3832026
Fix remainder of test0022 in ASTConverter15JLS8Test
May 22, 2024
d5424b1
Fixes test0464 - check for null type
May 28, 2024
8876e0e
Flags must be persisted when creating AST, see test0673
May 28, 2024
fe2a8c3
Replace compliance/source/target 1.8 by 8
mickaelistria May 29, 2024
eb1b128
Fix NPE
mickaelistria May 29, 2024
29900f5
Set offset for permits clause
datho7561 May 29, 2024
e78ab41
Fix conversion of text blocks
datho7561 May 29, 2024
c718851
Fix bug in permits clause offset handling
datho7561 May 29, 2024
e9d11a2
Prevent StackOverflow when adjusting error ranges using tokens
datho7561 May 29, 2024
c16aa68
collect parameters as visible bindings (#400)
gayanper May 29, 2024
973ad37
[Releng] Force qualifier to start with `z`
mickaelistria May 29, 2024
48987c0
Fix contructor->IMethod resolution
mickaelistria May 30, 2024
9c19f3e
Avoid errors related to source versions vs preview
mickaelistria May 30, 2024
5185743
Fix test0391 - typeBinding getQualifiedName for arrays
May 29, 2024
55510ba
Don't add null convertToType result to lists
fbricon May 31, 2024
c3527d4
Some convert/binding fixes
mickaelistria May 30, 2024
5ec7736
Fix some positions for Javadoc
mickaelistria May 31, 2024
a99d809
Fix test0292 - resolving a name to a type binding
May 31, 2024
42a8c37
Fix testRecordConstructor001
May 30, 2024
e05e600
Prevent StackOverflow in 'add missing methods'
datho7561 May 31, 2024
c197e03
add some dom fixes while syntax errors
gayanper Jun 4, 2024
ade7319
Collapse overlapping variable decls into one statement
datho7561 Jun 3, 2024
42d8b63
Fix some tests
mickaelistria Jun 3, 2024
c253448
Fix testBug534009 - binding stuff
May 23, 2024
a4f844a
Further progress on unimplemented resolve and parse
May 28, 2024
96d1667
Improve EnumDeclaration conversion
mickaelistria Jun 4, 2024
b5c1bd2
Declaring class should be null for local variables
datho7561 Jun 5, 2024
4de03f2
Bump pom versions
mickaelistria Jun 8, 2024
1a02097
fix NPE due the jcVariableDecl.vartype being null
gayanper Jun 8, 2024
c1a982b
Fix npe in javac binding resolver
gayanper Jun 8, 2024
cac1ed2
Fix NPE at variable type binding when syntax errors
gayanper Jun 9, 2024
0b0ffe4
Fix source range calculation when syntax errors exist
gayanper Jun 9, 2024
e0a1932
Use reflection to access the Javadoc offset
datho7561 Jun 7, 2024
0c9a1d0
Fix type annotation binding resolution
gayanper Jun 10, 2024
60567d7
Fix bug in getting segments of packagebinding
datho7561 Jun 5, 2024
eee3264
Prevent IllegalArgumentException when adjusting unclosed string range
datho7561 Jun 10, 2024
77c082b
Fix getExceptionTypes for JavacMethodBinding
datho7561 Jun 10, 2024
d64c64c
Fix type resolution in method parameter binding
gayanper Jun 9, 2024
bc7dadb
Wrap parse of each compilation unit in try/catch
datho7561 Jun 7, 2024
36db807
Handle another corner case for QualifiedName
datho7561 Jun 11, 2024
2f8a9ef
Fix binding bug with qualified names
datho7561 Jun 11, 2024
2200b11
Resolve parent parameterized type binding when available
mickaelistria Jun 12, 2024
fe70b3d
Handle some ArrayInitializer DOM conversion and bindings
datho7561 Jun 11, 2024
68062fe
Fix some new array dimensions
mickaelistria Jun 12, 2024
240378f
Implement the extension point
Jun 12, 2024
cfc812b
Fix modifiers for interface method bindings
mickaelistria Jun 12, 2024
308b89f
Fix some binding.toString()
mickaelistria Jun 13, 2024
44ca9f0
Improve dimensions
mickaelistria Jun 13, 2024
e495c2a
workaround some endPos issue, support any expr in try-resourecs
mickaelistria Jun 13, 2024
1d39106
Convert SuperMethodReference
mickaelistria Jun 13, 2024
3f87db7
Fix some VariableBinding.getVariableId()
mickaelistria Jun 13, 2024
7690b96
Resolve type for cast expression
mickaelistria Jun 13, 2024
7053cef
Force Javac to proceed the build process despite compilation errors
testforstephen Jun 13, 2024
9c782a0
Adjust source range for this constructor invocation
datho7561 Jun 13, 2024
1fc6bf7
Handle SingleVariableDeclaration with trailing [][][]
datho7561 Jun 13, 2024
ef83d60
Use Type.flatName to compute binding key
mickaelistria Jun 14, 2024
65e4288
Fix some impls in JavacTypeBinding
mickaelistria Jun 14, 2024
2ff4331
Improve how we lookup methods
mickaelistria Jun 14, 2024
9e954f7
Fix infix expression representation in dom tree
Jun 14, 2024
6ef7e8f
Fix isRecovered for annotation bindings
datho7561 Jun 14, 2024
4f3daf4
Use most specific node when building the javac -> JDT map
datho7561 Jun 13, 2024
fd6ceba
Multiple improvements to DOM-based completion
gayanper May 18, 2024
453d132
Pass --add-exports from classpath to javac
mickaelistria Jun 17, 2024
64538ab
Use CancelableNameEnvironment when there is a project.
datho7561 Jun 17, 2024
fe6ac0f
Fix various javadoc ranges
mickaelistria Jun 18, 2024
8d55308
Do not resolve bindings on non-original ast nodes
datho7561 Jun 18, 2024
f65e8eb
Implement finding implementation node by binding key
datho7561 Jun 18, 2024
b80651d
Adopt the new option to enable alternative compiler
testforstephen Jun 19, 2024
df05e62
Fix AIOOBE in diagnostic adjustment
datho7561 Jun 19, 2024
168050f
Resolve javadoc bindings
mickaelistria Jun 19, 2024
aa67d86
Some more Javadoc fixes
mickaelistria Jun 20, 2024
6995b2c
On some syntax errors, name is missing, leading to blown stack
Jun 18, 2024
7edf0fa
Some tests require binding.getSuperClass() to return null when superc…
Jun 18, 2024
9953bf7
Suspicious workaround: test0232 and 8 others require no binding for a…
Jun 18, 2024
ca3f93f
Fix 7 errors, convert 7 errors to failures; don't use stub empty block
Jun 20, 2024
c53b9c0
Always resolve primative literals as their primative type
datho7561 Jun 20, 2024
dac0ff5
Fix test test0334 - multi-dimensional arrays source ranges
Jun 20, 2024
6025765
Fix some ranges
mickaelistria Jun 21, 2024
fb29956
Fixes test0360 - for( int i=0,j=0,k=0; etc) does not have preferred dom
Jun 21, 2024
7d5374c
Fix test0386 - switchCase has wrong source range
Jun 21, 2024
593dc06
Extract SwitchCase logic to own method
Jun 21, 2024
63000e3
Fix multiple tests where a difference of void return vs null return w…
Jun 21, 2024
eb7a923
Enable annotation processing in Javac compiler (#519)
testforstephen Jun 24, 2024
12126fb
Honor compilerOption JavaCore.COMPILER_DOC_COMMENT_SUPPORT
mickaelistria Jun 24, 2024
7654e09
test0447 - Dom tree match better for some invalid syntax files
Jun 24, 2024
248727e
Fix test0463 - string literal with octal codes in it
Jun 24, 2024
4ce3fc2
Better support for non-Javadoc comments
mickaelistria Jun 24, 2024
a7e0a83
Preference Declaration node in findDeclaringNode
mickaelistria Jun 25, 2024
272064e
Prevent NPE in JavacMethodBinding.findJavaElement()
mickaelistria Jun 25, 2024
cf07614
[WIP] replace ASTRequestor.compilationUnitResolver with a new interface
datho7561 Jun 17, 2024
2ac0884
[WIP] get the tests that use the feature to work
datho7561 Jun 17, 2024
a353da9
[WIP] create array bindings if they don't exist
datho7561 Jun 18, 2024
380653b
[WIP] fix compilation issues
datho7561 Jun 18, 2024
98608e5
[WIP] clean up the code and add docs
datho7561 Jun 18, 2024
96213fa
[WIP] another code simplification
datho7561 Jun 18, 2024
0c6c628
[WIP] switch over to use a Function instead of a bespoke interface
datho7561 Jun 25, 2024
ccc0305
Fixes to key -> binding resolver
mickaelistria Jun 25, 2024
5150d4e
Include working copies when parsing in toCompilationUnit()
datho7561 Jun 20, 2024
33f9f09
Do not set recipient for annotations on formal parameters
datho7561 Jun 20, 2024
6dfe6ee
Fix typeMismatch problem conversion
mickaelistria Jun 27, 2024
1635a1f
Adjust some parameterized vs raw vs generic binding
mickaelistria Jun 27, 2024
6c47c4e
Improvements to `@snippet` Javadoc
datho7561 Jun 27, 2024
13348a9
Increase target version when javac cannot downcompile to specified ve…
datho7561 Jun 25, 2024
020e604
Fix "Add unimplemented methods" QuickFix
datho7561 Jun 27, 2024
7df267f
Improve support for TypeMismatch error
mickaelistria Jun 27, 2024
cf18431
Add error code for uncaught checked exception
datho7561 Jun 28, 2024
e5ee1d5
Fix the "remove abstract keywiord" and "remove body" quickfixes
datho7561 Jun 27, 2024
04b6c69
refresh javac output to make sure Java project system recognize the o…
testforstephen Jun 26, 2024
b0b6aae
Support more problem types
mickaelistria Jul 1, 2024
f88c268
Pass XDOCLINT compiler option
mickaelistria Jun 30, 2024
aea8b3e
Some fixes in problem conversion
mickaelistria Jul 1, 2024
f74c96e
Un-static JavacProblem converter
mickaelistria Jul 2, 2024
f5c4a21
Fix problem position
mickaelistria Jul 2, 2024
417a462
Fix various binding and problem conversion issues
mickaelistria Jul 2, 2024
c2b7c8e
Fix JavacTypeBinding.isAssignementCompatible
mickaelistria Jul 2, 2024
ab817f1
Use recovered method symbol
datho7561 Jun 27, 2024
53d41cd
Fix "add default serial uuid" for inner classes
datho7561 Jul 3, 2024
73be105
fix NPE due to module names expressions being null
gayanper Jul 3, 2024
75bf4f3
Fix some "wrong type" quick fixes
datho7561 Jul 3, 2024
f15768c
Fix regression caused by #558
datho7561 Jul 4, 2024
4a1ca13
fix prefixed numeric literal identification
gayanper Jul 4, 2024
cd9b1d4
Translate some more error codes
datho7561 Jul 4, 2024
a29ca0d
Fix the regression of rename type quickfix
datho7561 Jul 3, 2024
5ae9549
Fix "change visibility" for types with parameters
datho7561 Jul 3, 2024
96ae647
Allow to get full AST in JavacProblemConverter
mickaelistria Jul 4, 2024
3e1a811
Handle erroneous method types in expression binding
datho7561 Jul 5, 2024
e93df43
add support for static field imports binding resolution.
gayanper Jul 6, 2024
1ef02e6
Update doc to JavacCompilerFactory
mickaelistria Jul 8, 2024
c97c41e
add import required proposal for type completions
gayanper Jul 7, 2024
e5971a0
Improve type completion inside expressions
gayanper Jul 7, 2024
2458a85
Support ErrorType for methods
mickaelistria Jul 8, 2024
36cdebc
Fix isNested for type parameters
datho7561 Jun 26, 2024
2459589
Fix bindingResolver for unresolved method
mickaelistria Jul 9, 2024
342ff10
Fix diagnostic position for ParameterMismatch
mickaelistria Jul 9, 2024
0328a4a
Map some more javadoc problems
mickaelistria Jul 9, 2024
1ca63c7
support annotation completions
gayanper Jul 9, 2024
996d827
Fix TypeMismatch vs ParameterMismatch
mickaelistria Jul 9, 2024
a68af5a
Populate the compiled types and reference info to the CompilationResu…
testforstephen Jul 10, 2024
b42ad5b
Swith javac to Java 23
akurtakov Jul 8, 2024
17110e9
Map more pb
mickaelistria Jul 10, 2024
5b1947c
Run tests on Java 23
akurtakov Jul 10, 2024
2f25a4b
[WIP] do not use recovered bindings when performing code select
datho7561 Jul 9, 2024
7a57bb9
Jenkins javac tests should run java 23 profile
akurtakov Jul 10, 2024
55e32fa
Various fixes to get a "extract method" quickfix working
datho7561 Jul 10, 2024
01e20fe
Map some more pb
mickaelistria Jul 11, 2024
ef9d263
Fix error ranges and ids for "superclass lacks noargs constructor"
datho7561 Jul 11, 2024
5723530
More problem mapping for modifiers
mickaelistria Jul 12, 2024
a2e7e83
More modifiers problem mapping
mickaelistria Jul 15, 2024
2008177
Better map illegal combination of modifiers
mickaelistria Jul 15, 2024
e5bb3a1
include enum literal annotations
gayanper Jul 14, 2024
4620c91
include annotation modifiers for record components
gayanper Jul 14, 2024
de84fc1
Fix NPE in getJavaElement for JavacVariableBinding
datho7561 Jul 15, 2024
8a438b0
Run more tests with Java 23
akurtakov Jul 15, 2024
db0b144
Do not use errorneous recovered types
datho7561 Jul 15, 2024
f8c038c
Fixes for modifier quickfixes
datho7561 Jul 11, 2024
03c931f
Some support for anonymous TypeBinding.getJavaElement()
mickaelistria Jul 17, 2024
d32d650
Fix ASTConverterTest.test0295 and others: an incorrect key when missi…
Jul 17, 2024
611c93f
Clean up trailing semicolons in some cases
Jul 17, 2024
77d8dce
Convert a visibility problem message
Jul 17, 2024
306bfd1
Fix error id for "annot param must be constant"
datho7561 Jul 17, 2024
4f8581d
Fixes test0470 - trailing semicolon should not be in source range
Jul 17, 2024
2e68ca0
Fix methodBinding.getJavaElement() with varargs
mickaelistria Jul 18, 2024
edb2bd6
Forward workingCopyOwner to JavacBindingResolver
mickaelistria Jul 18, 2024
a66314c
improve completion on variable declaration to avoid $error$ binding c…
gayanper Jul 16, 2024
707b068
improve how method and variable positions names are resolved (#597)
gayanper Jul 19, 2024
ff3aa79
Improve support for "var" in lambda params and bindings
mickaelistria Jul 19, 2024
414c13c
Fix quickfix for private abstract method in interface
datho7561 Jul 19, 2024
4114946
Fixed setting ASTNode.ORIGINAL on CompilationUnit
mickaelistria Jul 20, 2024
a56759a
Improve diag mapping for unresolved
mickaelistria Jul 20, 2024
f94e358
Add support to override JavaCore.latestSupportedJavaVersion for javac
gayanper Jul 12, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: daily
14 changes: 14 additions & 0 deletions .github/workflows/auto-author-assign.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Auto Author Assign

on:
pull_request_target:
types: [ opened, reopened ]

permissions:
pull-requests: write

jobs:
assign-author:
runs-on: ubuntu-latest
steps:
- uses: toshimaru/[email protected]
53 changes: 53 additions & 0 deletions .github/workflows/ci-dom-javac.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Continuous Integration with DOM/Javac
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-dom
cancel-in-progress: true

on:
push:
branches: [ 'dom-based-operations', 'dom-with-javac' ]
pull_request:
branches: [ 'dom-based-operations', 'dom-with-javac' ]

jobs:
build-dom-javac:
runs-on: ubuntu-latest
steps:
- name: Install xmllint
shell: bash
run: |
sudo apt update
sudo apt install -y libxml2-utils
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Enable DOM-first and Javac
run: sed -i 's$</argLine>$ -DCompilationUnit.DOM_BASED_OPERATIONS=true -DSourceIndexer.DOM_BASED_INDEXER=false -DICompilationUnitResolver=org.eclipse.jdt.core.dom.JavacCompilationUnitResolver -DAbstractImageBuilder.compiler=org.eclipse.jdt.internal.javac.JavacCompiler_</argLine>$g' */pom.xml
- name: Set up JDKs ☕
uses: actions/setup-java@v4
with:
java-version: |
8
17
21
mvn-toolchain-id: |
JavaSE-1.8
JavaSE-17
JavaSE-21
distribution: 'temurin'
- name: Set up Maven
uses: stCarolas/setup-maven@d6af6abeda15e98926a57b5aa970a96bb37f97d1 # v5
with:
maven-version: 3.9.6
- name: Build with Maven 🏗️
run: |
mvn clean install --batch-mode -f org.eclipse.jdt.core.compiler.batch -DlocalEcjVersion=99.99
mvn -U clean verify --batch-mode --fail-at-end -Ptest-on-javase-21 -Pbree-libs -Papi-check -Djava.io.tmpdir=$WORKSPACE/tmp -Dproject.build.sourceEncoding=UTF-8 -Dtycho.surefire.argLine="--add-modules ALL-SYSTEM -Dcompliance=1.8,11,20 -Djdt.performance.asserts=disabled" -Dcbi-ecj-version=99.99
- name: Test Report
if: success() || failure() # run this step even if previous step failed
run: |
echo ▶️ TESTS RUN: $(xmllint --xpath 'string(/testsuite/@tests)' */target/surefire-reports/TEST-*.xml | awk '{n += $1}; END{print n}' -)
echo ❌ FAILURES: $(xmllint --xpath 'string(/testsuite/@failures)' */target/surefire-reports/TEST-*.xml | awk '{n += $1}; END{print n}' -)
echo 💥 ERRORS: $(xmllint --xpath 'string(/testsuite/@errors)' */target/surefire-reports/TEST-*.xml | awk '{n += $1}; END{print n}' -)
echo 🛑 SKIPPED: $(xmllint --xpath 'string(/testsuite/@skipped)' */target/surefire-reports/TEST-*.xml | awk '{n += $1}; END{print n}' -)
16 changes: 8 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Upload
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
with:
name: Event File
path: ${{ github.event_path }}
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Set up JDKs ☕
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: |
8
Expand All @@ -34,19 +34,19 @@ jobs:
mvn-toolchain-id: |
JavaSE-1.8
JavaSE-17
JavaSE-20
JavaSE-21
distribution: 'temurin'
- name: Set up Maven
uses: stCarolas/setup-maven@07fbbe97d97ef44336b7382563d66743297e442f # v4.5
uses: stCarolas/setup-maven@d6af6abeda15e98926a57b5aa970a96bb37f97d1 # v5
with:
maven-version: 3.9.3
maven-version: 3.9.8
- name: Build with Maven 🏗️
run: |
mvn clean install --batch-mode -f org.eclipse.jdt.core.compiler.batch -DlocalEcjVersion=99.99
mvn -U clean verify --batch-mode --fail-at-end -Ptest-on-javase-20 -Pbree-libs -Papi-check -Djava.io.tmpdir=$WORKSPACE/tmp -Dproject.build.sourceEncoding=UTF-8 -Dtycho.surefire.argLine="--add-modules ALL-SYSTEM -Dcompliance=1.8,11,17,20 -Djdt.performance.asserts=disabled" -Dcbi-ecj-version=99.99
mvn -U clean verify --batch-mode --fail-at-end -Ptest-on-javase-21 -Pbree-libs -Papi-check -Djava.io.tmpdir=$WORKSPACE/tmp -Dproject.build.sourceEncoding=UTF-8 -Dtycho.surefire.argLine="--add-modules ALL-SYSTEM -Dcompliance=1.8,11,17,20 -Djdt.performance.asserts=disabled" -Dcbi-ecj-version=99.99
- name: Upload Test Results for Linux
if: always()
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
with:
name: test-results-linux
if-no-files-found: warn
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: CodeQL call

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
schedule:
- cron: '15 8 * * 1'

jobs:
callCodeQLworkflow:
uses: eclipse-platform/eclipse.platform.releng.aggregator/.github/workflows/codeQLworkflow.yml@master
4 changes: 2 additions & 2 deletions .github/workflows/rebase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout the latest code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 0 # otherwise, you will fail to push refs to dest repo
- name: Automatic Rebase
uses: cirrus-actions/rebase@1.7
uses: cirrus-actions/rebase@1.8
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@ Snap.*
/target/

# pomless
.polyglot.*
.polyglot.*

.DS_Store
2 changes: 1 addition & 1 deletion .mvn/extensions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
<extension>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-build</artifactId>
<version>4.0.5</version>
<version>4.0.7</version>
</extension>
</extensions>
3 changes: 3 additions & 0 deletions JCL/converterJclMin22/src/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Manifest-Version: 1.0
Created-By: 1.8.0_151 (Oracle Corporation)

5 changes: 5 additions & 0 deletions JCL/converterJclMin22/src/java/io/InputStream.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package java.io;

public class InputStream {

}
8 changes: 8 additions & 0 deletions JCL/converterJclMin22/src/java/io/PrintStream.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package java.io;

public class PrintStream {
public void println(String x) {
}
public void println(int x) {
}
}
4 changes: 4 additions & 0 deletions JCL/converterJclMin22/src/java/io/Serializable.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package java.io;

public interface Serializable {
}
5 changes: 5 additions & 0 deletions JCL/converterJclMin22/src/java/lang/CharSequence.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package java.lang;

public interface CharSequence {
int length();
}
4 changes: 4 additions & 0 deletions JCL/converterJclMin22/src/java/lang/Class.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package java.lang;

public class Class<T> {
}
20 changes: 20 additions & 0 deletions JCL/converterJclMin22/src/java/lang/ClassNotFoundException.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package java.lang;

public class ClassNotFoundException extends ReflectiveOperationException {

public ClassNotFoundException() {
super((Throwable)null); // Disallow initCause
}

public ClassNotFoundException(String s) {
super(s, null); // Disallow initCause
}

public ClassNotFoundException(String s, Throwable ex) {
super(s, ex); // Disallow initCause
}

public Throwable getException() {
return getCause();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package java.lang;

public class CloneNotSupportedException extends Exception {
}
4 changes: 4 additions & 0 deletions JCL/converterJclMin22/src/java/lang/Comparable.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package java.lang;

public interface Comparable<T> {
}
6 changes: 6 additions & 0 deletions JCL/converterJclMin22/src/java/lang/Deprecated.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package java.lang;
import java.lang.annotation.*;
@Documented
@Retention(RetentionPolicy.RUNTIME)
public @interface Deprecated {
}
18 changes: 18 additions & 0 deletions JCL/converterJclMin22/src/java/lang/Enum.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package java.lang;

public abstract class Enum<T extends Enum<T>> implements Comparable<T>, java.io.Serializable {
private static final long serialVersionUID = 2L;

protected Enum(String name, int ordinal) {
}
public final String name() {
return null;
}
public final int ordinal() {
return 0;
}
public static <T extends Enum<T>> T valueOf(Class<T> enumClass,
String name) {
return null;
}
}
16 changes: 16 additions & 0 deletions JCL/converterJclMin22/src/java/lang/Error.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package java.lang;

public class Error extends Throwable {

public Error(java.lang.String s) {
// TODO Auto-generated constructor stub
}

public Error(java.lang.String s, java.lang.Throwable cause) {
// TODO Auto-generated constructor stub
}

public Error() {
// TODO Auto-generated constructor stub
}
}
19 changes: 19 additions & 0 deletions JCL/converterJclMin22/src/java/lang/Exception.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package java.lang;

public class Exception extends Throwable {
public Exception() {
super();
}

public Exception(String message) {
super(message);
}

public Exception(String message, Throwable cause) {
super(message, cause);
}

public Exception(Throwable cause) {
super(cause);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package java.lang;

public class IllegalAccessException extends RuntimeException {

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package java.lang;

public class IllegalMonitorStateException extends RuntimeException {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@

package java.lang;
public
class IncompatibleClassChangeError extends LinkageError {

public IncompatibleClassChangeError () {
super();
}

public IncompatibleClassChangeError(String s) {
super(s);
}
}
59 changes: 59 additions & 0 deletions JCL/converterJclMin22/src/java/lang/Integer.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
/*******************************************************************************
* Copyright (c) 2000, 2004 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
*******************************************************************************/
package java.lang;

public class Integer extends Number implements Comparable<Integer> {
private static final long serialVersionUID = 6462609062775655000L;

public Integer(int i) {
}
public Integer(String s) {
}
public static final int MAX_VALUE= 2147483647;
public static final int MIN_VALUE= -2147483647;

public static int parseInt(String s) {
return 0;
}
public static String toHexString(int i) {
return null;
}
public static String toString(int i) {
return null;
}
/* (non-Javadoc)
* @see java.lang.Number#doubleValue()
*/
public double doubleValue() {
return 0;
}
/* (non-Javadoc)
* @see java.lang.Number#floatValue()
*/
public float floatValue() {
return 0;
}
/* (non-Javadoc)
* @see java.lang.Number#intValue()
*/
public int intValue() {
return 0;
}
/* (non-Javadoc)
* @see java.lang.Number#longValue()
*/
public long longValue() {
return 0;
}
public int compareTo(Integer i) {
return 0;
}
}
4 changes: 4 additions & 0 deletions JCL/converterJclMin22/src/java/lang/InterruptedException.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package java.lang;

public class InterruptedException extends Exception {
}
Loading