Joakim Erdfelt
40e9e053b9
Merge pull request #3768 from eclipse/jetty-9.4.x-3708-stringutil-replace
...
Issue #3708 - use StringUtil alternatives for known slow JVM impls.
2019-06-13 14:01:35 -05:00
Joakim Erdfelt
adb6e7c8d2
Issue #3708 - Correcting for testcases
...
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
2019-06-12 10:39:05 -05:00
Joakim Erdfelt
877815e195
Issue #3708 - Adding new methods and converting codebase to use them
...
+ StringUtil.replace(String, char, char)
+ StringUtil.strip(String, String)
+ URIUtil.encodeSpecific(String, String)
+ URIUtil.decodeSpecific(String, String)
+ TypeUtil.toClassReference(Class)
+ TypeUtil.toClassReference(String)
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
2019-06-12 09:56:41 -05:00
Greg Wilkins
819c379975
Servlet Context/Handler/Holder cleanups ( #3767 )
...
Issue #3749 #3755 Servlet annotation cleanups
Cleanups when checking thread safety of lazy servlet/filter introspection.
+ Handle multiple holders for annotated servlets
+ Replaced duplicate code with common methods
Signed-off-by: Greg Wilkins <gregw@webtide.com>
2019-06-12 08:00:01 +02:00
Joakim Erdfelt
df716e1b23
Migrating away from junit5 deprecated isIn() to is(in())
...
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
2019-04-30 12:33:28 -05:00
Olivier Lamy
9b7afd8a03
Happy new year!! ( #3232 )
...
Signed-off-by: olivier lamy <oliver.lamy@gmail.com>
2019-01-01 11:52:16 +10:00
Jan Bartel
6af567a4b9
Handle ServletContainerInitializer from WEB-INF/classes #3146 ( #3158 )
...
* Handle the case where a ServletContainerInitializer comes from
WEB-INF/classes
Signed-off-by: Jan Bartel <janb@webtide.com>
2018-12-11 06:33:44 +01:00
Greg Wilkins
6bec0e8357
Cleanup webapp context
...
Signed-off-by: Greg Wilkins <gregw@webtide.com>
2018-11-07 12:05:55 +01:00
Simone Bordet
5e2c0600d3
Merged branch 'jetty-9.4.x' into 'jetty-9.4.x-2941-asm_jdk11'.
2018-10-18 15:50:07 +02:00
Simone Bordet
1ba945b39b
Issue #2941 - JDK 11: UnsupportedOperationException at AnnotationParser.scanClass.
...
Updated to ASM 7.0-beta, and defaulted AnnotationParser to ASM 7.
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2018-10-04 13:47:56 +02:00
Simone Bordet
4dcc7cbae6
Issue #2191 - JPMS Support.
...
Restored String constant for the ASM version.
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2018-10-04 00:43:52 +02:00
Simone Bordet
76a9be8a82
Issue #2191 - JPMS Support.
...
Restored error message in case of wrong ASM version.
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2018-10-03 19:24:05 +02:00
Simone Bordet
27e7b3287a
Merged branch 'jetty-9.4.x' into 'jetty-9.4.x-2191-jpms_automatic_module_name'.
2018-09-26 13:51:21 +02:00
Jan Bartel
5593e5b479
Jetty 9.4.x 2903 delay listener instantiation ( #2930 )
...
* Issue #2903 Ensure listeners not instantiated for quickstart gen
Signed-off-by: Jan Bartel <janb@webtide.com>
2018-09-26 11:27:57 +10:00
Simone Bordet
e4ff653295
Issue #2191 - JPMS Support.
...
Introduced --jpms option in jetty-start to run Jetty from the module-path.
Introduced [jpms] sections in *.mod files, to specify JPMS command line
options that needs to be added to the command line generated by jetty-start.
Bumped java.transaction-api to 1.3 because it has Automatic-Module-Name.
Fixed ASM version lookup using ManifestUtils.
Fixed WebInfConfiguration.findAndFilterContainerPaths() to properly
scan the module-path, which may contain both files and directories.
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2018-09-25 22:11:25 +02:00
Jan Bartel
5056ac5895
Issue #2834 Make ASM version error message friendlier ( #2887 )
...
Signed-off-by: Jan Bartel <janb@webtide.com>
2018-09-11 09:28:06 +10:00
Joakim Erdfelt
a3f1592c50
Issue #2431 - Upgrade to Junit 5 ( #2436 )
...
+ Changes needed for new Junit 5
+ Migrating from Vintage junit API to Jupiter junit API
+ Relies on SNAPSHOT jetty-test-helper
- this will be a formal release once this issue has been
resolved satisfactory
+ Have jenkins always pull latest SNAPSHOT for each build
+ Adding jetty.snapshots repository
+ Using surefire 2.22.0 per advice from junit
+ Ensuring <reuseForks>true</reuseForks> to work around issue junit-team/junit5#801
+ Disabling <forkMode>always</forkMode> in maven-surefire-plugin
due to bug https://github.com/junit-team/junit5/issues/801
+ OSGi tests must remain at vintage due to PaxExam
+ Moving from vintage TestingDir to jupiter WorkDir
+ Fixing imports to use jupiter, not vintage
+ Migrating vintage ExpectedException to jupiter assertThrows
+ Migrating vintage TestName to jupiter TestInfo
+ Migrating @RunWith(Parameterized.class)
to @ParameterizedTest with Argument Sources
+ Migrating assertTrue(val.contains(needle))
to assertThat(val, containsString(needle))
+ Aligning junit versions per recommendations from @sormuras
+ Adjusting parameter order change for assertEquals()
+ Test LifeCycle Annotation Migration
junit 4 | junit 5 / jupiter
------------ | -----------
@Before | @BeforeEach
@After | @AfterEach
@BeforeClass | @BeforeAll
@AfterClass | @AfterAll
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
Signed-off-by: olivier lamy <oliver.lamy@gmail.com>
2018-09-05 10:07:17 +10:00
Jan Bartel
88d1ead25b
Issue #2754 Only instantiate listener if it will be used ( #2763 )
...
Signed-off-by: Jan Bartel <janb@webtide.com>
2018-08-07 12:23:09 +10:00
Matthias Perktold
f901efc413
Issue #2662 - Unnecessary boxing conversions
...
Signed-off-by: Matthias Perktold <tias251@gmail.com>
2018-06-13 16:20:12 +02:00
Jan Bartel
ea6d18f919
Jetty 9.4.x issue 2397asm jdk10 support ( #2417 )
...
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
Signed-off-by: Jan Bartel <janb@webtide.com>
2018-04-06 12:00:09 +10:00
WalkerWatch
534b8ea38b
Add edit warning for .mod files. Resolves #173
2018-03-15 13:23:42 -04:00
olivier lamy
7004aaa538
#2298 Override the processor number with an environment variable
...
Signed-off-by: olivier lamy <olamy@webtide.com>
2018-03-07 21:02:26 +10:00
Lachlan Roberts
a639ee9275
Resolved errorprone MissingOverride warnings #2206
...
`@Override` was added to methods which were missing the annotation #2206
Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
2018-03-01 13:59:25 +11:00
Joakim Erdfelt
41ed9f29f4
Merge remote-tracking branch 'origin/jetty-9.3.x' into jetty-9.4.x
2018-01-09 09:37:25 -06:00
Joakim Erdfelt
fa4c7b0ca9
Issue #2108 - Updating license headers for year 2018
2018-01-09 08:39:37 -06:00
Joakim Erdfelt
067fc5d2d8
Issue #2108 - Upgrade licenses for 2018
2018-01-09 07:42:06 -06:00
olivier lamy
f07ea2bbf3
more javadoc fixes #2056
...
Signed-off-by: olivier lamy <olamy@webtide.com>
2018-01-06 20:26:22 +11:00
Jan Bartel
eebe139494
Jetty 9.4.x 2043 concurrentmodification annotation parsing ( #2052 )
...
* Issue #2043 Fix ConcurrentModificationException listing duplicate class scanning
Signed-off-by: Jan Bartel <janb@webtide.com>
2017-12-14 09:45:29 +01:00
Jan Bartel
f21fb5d6d9
Issue #2030 fix NPE in AnnotationConfiguration with debug enabled ( #2031 )
...
* Issue #2030 fix NPE in AnnotationConfiguration with debug enabled
Signed-off-by: Jan Bartel <janb@webtide.com>
2017-12-13 11:04:55 +01:00
Jan Bartel
7f6e2e8dd0
Issue #1933
...
Cherry-pick of 29373c6
and 44d170e
2017-11-22 13:53:38 +01:00
Jan Bartel
98d8c2400d
Issue #1933
...
Add some comments, changes from code review.
Signed-off-by: Jan Bartel <janb@webtide.com>
2017-11-16 10:01:44 +01:00
Jan Bartel
12327b8876
Issue #1933
...
Signed-off-by: Jan Bartel <janb@webtide.com>
2017-11-15 10:33:51 +01:00
Simone Bordet
d496cc85b6
Merged branch 'jetty-9.3.x' into 'jetty-9.4.x'.
2017-11-08 22:43:48 +01:00
Simone Bordet
b1d5fea96c
Issue #1797 - JEP 238 - Multi-Release JAR files break bytecode scanning. ( #1951 )
...
Made MultiReleaseJarFile closeable and using try-with-resources in
AnnotationParser to avoid leaking file descriptors.
Made few code simplifications.
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
2017-11-08 21:38:26 +01:00
Simone Bordet
7a6d7bd137
Code reformatting (tabs -> spaces).
2017-11-08 19:03:22 +01:00
Jan Bartel
7bc6ec6b32
Merge remote-tracking branch 'origin/jetty-9.3.x' into jetty-9.4.x
2017-10-25 16:37:48 +11:00
Jan Bartel
843f7e8ee4
Issue #1797
2017-10-25 16:36:10 +11:00
Jan Bartel
264aa61a2b
Issue #1892
2017-10-19 09:19:06 +11:00
Jan Bartel
d5769c21a9
Merge remote-tracking branch 'origin/jetty-9.3.x' into jetty-9.4.x
2017-10-18 17:16:19 +11:00
Jan Bartel
da813488fb
Issue #1213
...
Ensure use asm5 for osgi tests
2017-10-18 17:07:00 +11:00
Jan Bartel
7517e7fdd9
Merge remote-tracking branch 'origin/jetty-9.3.x' into jetty-9.4.x
2017-10-18 12:44:52 +11:00
Jan Bartel
84ffdf1447
Issue #1213
...
Update annotation parser for asm 6 support.
2017-10-18 12:42:10 +11:00
Greg Wilkins
fa1f103da7
Merge remote-tracking branch 'origin/jetty-9.3.x' into jetty-9.4.x
2017-10-18 12:26:07 +11:00
Greg Wilkins
aa212df4b1
Use java platform not version
2017-10-18 12:24:53 +11:00
Greg Wilkins
c12ba01014
Issue #1797 use platform for MR jars
2017-10-18 12:24:26 +11:00
Greg Wilkins
44a1f1e1a6
Issue #1797 use platform for MR jars
2017-10-18 12:19:33 +11:00
Greg Wilkins
dd0eaa0f1f
Issue #1901 Backport some java9 support to 9.3
2017-10-17 17:14:18 +11:00
Greg Wilkins
22f95ad847
Issue #1901 Backport some java9 support to 9.3
2017-10-17 17:01:21 +11:00
Greg Wilkins
5de895af88
Issue #1797
...
Converted jetty-util to be a multi release jar
Added org/eclipse/jetty/util/MultiReleaseJarFile as botha java8 and java9 version
deprecated jarScanner
updated AnnotationParser to use MultiReleaseJarFile
2017-10-17 15:06:09 +11:00
Jan Bartel
e00182323b
Issue #1692
2017-10-17 14:43:41 +11:00