Skip to content

Commit

Permalink
Add java.lang.invoke.* to StackTraceFilter
Browse files Browse the repository at this point in the history
  • Loading branch information
leonard84 committed Feb 24, 2024
1 parent f20866f commit 3bb576d
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 22 deletions.
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
/*
* Copyright 2009 the original author or authors.
* Copyright 2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* https://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package org.spockframework.runtime;
Expand All @@ -38,6 +37,7 @@ public class StackTraceFilter implements IStackTraceFilter {
"|\\Qorg.codehaus.groovy.vmplugin.v8.\\E.*" +
"|groovy\\..*MetaClass.*" +
"|groovy\\.lang\\.MetaMethod" +
"|\\Qjava.lang.invoke.\\E.*" +
"|\\Qjava.lang.reflect.\\E.*" +
"|sun\\.reflect\\..*" +
"|\\Qjdk.internal.reflect.\\E.*" +
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
/*
* Copyright 2008 the original author or authors.
* Copyright 2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* https://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package org.spockframework.smoke
Expand Down Expand Up @@ -324,6 +323,7 @@ apackage.ASpec|a feature|2
new StackTraceElement('groovy.FooMetaClassBaz', 'bar', null, 0),
new StackTraceElement('groovy.lang.MetaMethod', 'bar', null, 0),
new StackTraceElement('java.lang.reflect.Foo', 'bar', null, 0),
new StackTraceElement('java.lang.invoke.LambdaForm', 'invoke', null, 0),
new StackTraceElement('sun.reflect.Foo', 'bar', null, 0),
new StackTraceElement('jdk.internal.reflect.Foo', 'bar', null, 0),
new StackTraceElement('org.spockframework.runtime.Foo', 'bar', null, 0),
Expand All @@ -349,6 +349,7 @@ org.spockframework.runtime.foo.Baz|bar|0
new StackTraceElement('groovy.FooMetaClassBaz', 'bar', null, 0),
new StackTraceElement('groovy.lang.MetaMethod', 'bar', null, 0),
new StackTraceElement('java.lang.reflect.Foo', 'bar', null, 0),
new StackTraceElement('java.lang.invoke.LambdaForm', 'invoke', null, 0),
new StackTraceElement('sun.reflect.Foo', 'bar', null, 0),
new StackTraceElement('jdk.internal.reflect.Foo', 'bar', null, 0),
new StackTraceElement('org.spockframework.runtime.Foo', 'bar', null, 0),
Expand Down

0 comments on commit 3bb576d

Please sign in to comment.