ecj Questions

0

I was playing around with Java Unicode Escapes and accidentally found the following interesting oddities. Here is the code that I wrote: static void main(String... args) { /* * \u0027 - single qu...
Matthieu asked 8/11, 2022 at 15:31

2

Solved

Just tried JDK17 on Eclipse 2021-09 to have it fail with a java.lang.VerifyError, which wasn't very helpful itself. I tracked it down to a switch statement, that gets fed a value pulled out of a Ma...
Lorenelorens asked 15/9, 2021 at 16:50

1

Solved

Consider the following class: class Temp { private final int field = 5; int sum() { return 1 + this.field; } } Then I compile and decompile the class: > javac --version javac 11.0.5 &g...
Fite asked 12/6, 2020 at 8:49

2

Solved

A friend of mine noticed that var<Integer> list = new ArrayList<Double>(); was valid in Java. It turns out that the type of list is evaluated to ArrayList<Double>. When usi...
Amylase asked 21/2, 2020 at 0:51

3

I was answering a question and ran into a scenario I can't explain. Consider this code: interface ConsumerOne<T> { void accept(T a); } interface CustomIterable<T> extends Iterable&lt...
Collision asked 22/4, 2020 at 9:35

0

Trying to get drools to run java8 jvm (upgraded from Java6). However, compilation has failed and the goal pushed further. Did a couple of things that helped: Ecj compiler: updated to 'org.eclipse....
Ivan asked 12/5, 2019 at 3:13

1

I understand that Eclipse uses it's own compiler for Java (ECJ) which has the ability to perform incremental compilation. From most of the readings I have found, this compilation is generally trigg...
Raycher asked 30/3, 2016 at 1:45

1

Solved

I have the following code: package test; import java.util.stream.IntStream; public class A { public static void main(String[] args) { IntStream.range(0, 10).mapToObj(n -> new Object() { in...
Damiondamita asked 23/6, 2018 at 1:12

2

Solved

I've been working with the new Eclipse Neon and some of my code started to give me errors straight away. This was strange to me at first, but then I found here that the Neon ECJ(Eclipse Java Compil...
Mausoleum asked 10/2, 2017 at 20:49

1

The problem setup consists of three java libs (I stripped all package names for readability, full qualified names are used everywhere): external-lib: provides the abstract class public abstract...
Twostep asked 16/4, 2018 at 14:17

2

Solved

The following code creates a Collector that produces an UnmodifiableSortedSet: package com.stackoverflow; import java.util.Collections; import java.util.SortedSet; import java.util.TreeSet; impor...
Brecher asked 10/4, 2018 at 21:1

2

Solved

Eclipse uses it's own compiler (ECJ) to compile Java code. Debugging a program compiled with Eclipse is easier, because simple code changes can be applied instantly (by the hot code replacement). ...
Bradleybradly asked 16/10, 2015 at 7:37

1

Solved

During the migration of our code base from java 1.7 to 1.8 we’ve got an error message "The method ... is not applicable for the arguments" on several code locations, all following the same pattern ...
Giro asked 14/7, 2016 at 12:37

1

Solved

Let's compile the following code with ECJ compiler from Eclipse Mars.2 bundle: import java.util.stream.*; public class Test { String test(Stream<?> s) { return s.collect(Collector.of(() -...
Department asked 17/5, 2016 at 6:9

1

Solved

The code below contains a reference to Enum::name (notice no type parameter). public static <T extends Enum<T>> ColumnType<T, String> enumColumn(Class<T> klazz) { return s...
Fever asked 12/5, 2016 at 11:36

2

Solved

Consider you want to mock an interface using Mockito containing the following method signatures: public void doThis(Object o); public void doThis(Object... o) I need to verify that doThis(Objec...
Freidafreight asked 14/12, 2015 at 11:19

1

Solved

I am creating a java agent that will be used to to do some bytecode modification to some classes org.eclipse.jdt.core.JDTCompilerAdapter is one of them. I am using javassit to modify some the execu...
Ankylosis asked 8/11, 2015 at 21:20

1

Solved

When I disassemble an enum with javap, the enum's implicit constructor arguments seem to be missing, and I can't figure out why. Here's an enum: enum Foo { X } I compile and disassemble this (o...
Valais asked 28/9, 2015 at 18:3

2

Solved

I have the following class: import java.util.HashSet; import java.util.List; public class OverloadTest<T> extends HashSet<List<T>> { private static final long serialVersionUID ...
Australorp asked 6/10, 2014 at 18:30
1

© 2022 - 2024 — McMap. All rights reserved.