Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 254120 Details for
Bug 469317
Eclipse Mars compiler chokes on (case sensitive) package and class names
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
step-by-step instructions for testing
eclipse-compiler-test.txt (text/plain), 7.32 KB, created by
Henning Schmiedehausen
on 2015-06-04 13:51:05 EDT
(
hide
)
Description:
step-by-step instructions for testing
Filename:
MIME Type:
Creator:
Henning Schmiedehausen
Created:
2015-06-04 13:51:05 EDT
Size:
7.32 KB
patch
obsolete
>% uname -an >Darwin tool.group.on 13.4.0 Darwin Kernel Version 13.4.0: Wed Mar 18 16:20:14 PDT 2015; root:xnu-2422.115.14~1/RELEASE_X86_64 x86_64 > >% git --version >git version 2.4.2 > >% java -version >java version "1.8.0_45" >Java(TM) SE Runtime Environment (build 1.8.0_45-b14) >Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode) >/Users/hschmiedehausen (505) > >% mvn --version >Apache Maven 3.3.3 (7994120775791599e205a5524ec3e0dfe41d4a06; 2015-04-22T04:57:37-07:00) >Maven home: /Users/hschmiedehausen/.apache-maven >Java version: 1.8.0_45, vendor: Oracle Corporation >Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/jre >Default locale: en_US, platform encoding: UTF-8 >OS name: "mac os x", version: "10.9.5", arch: "x86_64", family: "mac" > >% git clone git@github.com:hgschmie/eclipse-compiler-test >Cloning into 'eclipse-compiler-test'... >remote: Counting objects: 36, done. >remote: Compressing objects: 100% (21/21), done. >remote: Total 36 (delta 8), reused 30 (delta 7), pack-reused 0 >Receiving objects: 100% (36/36), 4.93 KiB | 0 bytes/s, done. >Resolving deltas: 100% (8/8), done. >Checking connectivity... done. > >% cd eclipse-compiler-test > >1) use the regular (Oracle) compiler: > >% mvn clean install >[INFO] Scanning for projects... >[INFO] >[INFO] ------------------------------------------------------------------------ >[INFO] Building eclipse-compilertest 0.1-SNAPSHOT >[INFO] ------------------------------------------------------------------------ >[INFO] >[...] >[INFO] ------------------------------------------------------------------------ >[INFO] BUILD SUCCESS >[INFO] ------------------------------------------------------------------------ >[INFO] Total time: 4.981 s >[INFO] Finished at: 2015-06-04T10:39:54-07:00 >[INFO] Final Memory: 45M/473M >[INFO] ------------------------------------------------------------------------ > >2) Use the Luna compiler > >% mvn -Peclipse-compiler clean install >[INFO] Scanning for projects... >[INFO] >[INFO] ------------------------------------------------------------------------ >[INFO] Building eclipse-compilertest 0.1-SNAPSHOT >[INFO] ------------------------------------------------------------------------ >[INFO] >[...] >[INFO] ------------------------------------------------------------- >[WARNING] COMPILATION WARNING : >[INFO] ------------------------------------------------------------- >[WARNING] /private/tmp/ect/eclipse-compiler-test/src/main/java/ect/broken/Test4.java:[12,285] Type safety: A generic array of Iterator<? extends Object> is created for a varargs parameter >[INFO] 1 warning >[INFO] ------------------------------------------------------------- >[INFO] ------------------------------------------------------------- >[ERROR] COMPILATION ERROR : >[INFO] ------------------------------------------------------------- >[ERROR] /private/tmp/ect/eclipse-compiler-test/src/main/java/ect/broken/Test1.java:[17] The method getTableLayouts(Test1.ConnectorTableHandle, Test1.Constraint<Test1.ColumnHandle>, Optional<Set<Test1.ColumnHandle>>) in the type Test1.ConnectorMetadata is not applicable for the arguments (Test1.ConnectorTableHandle, new Constraint<>(summary, predicate::test), Optional<Set<Test1.ColumnHandle>>) >[ERROR] /private/tmp/ect/eclipse-compiler-test/src/main/java/ect/broken/Test1.java:[17] Cannot infer type arguments for Constraint<> >[ERROR] /private/tmp/ect/eclipse-compiler-test/src/main/java/ect/broken/Test4.java:[12] Type mismatch: cannot convert from Iterator<Object> to Iterator<T> >[ERROR] /private/tmp/ect/eclipse-compiler-test/src/main/java/ect/broken/Test3.java:[11] Incorrect number of type arguments for generic method <T, R>of(Supplier<R>, BiConsumer<R,T>, BinaryOperator<R>, Collector.Characteristics...) of type Collector; it cannot be parameterized with arguments <T, ImmutableList.Builder<T>, ImmutableList<T>> >[ERROR] /private/tmp/ect/eclipse-compiler-test/src/main/java/ect/broken/Test3.java:[12] The constructed object of type ImmutableList.Builder is incompatible with the descriptor's return type: R >[ERROR] /private/tmp/ect/eclipse-compiler-test/src/main/java/ect/broken/Test3.java:[13] Cannot make a static reference to the non-static method add(Object[]) from the type ImmutableList.Builder >[ERROR] /private/tmp/ect/eclipse-compiler-test/src/main/java/ect/broken/Test3.java:[15] The method build() is undefined for the type R >[ERROR] /private/tmp/ect/eclipse-compiler-test/src/main/java/ect/broken/Test3.java:[18] The target type of this expression must be a functional interface > >!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! >[ERROR] /private/tmp/ect/eclipse-compiler-test/src/main/java/ect/broken/test7/Dummy.java:[1] The package ect.broken.test7 collides with a type >!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! > >[ERROR] /private/tmp/ect/eclipse-compiler-test/src/main/java/ect/broken/Test5.java:[18] Type mismatch: cannot convert from ImmutableMap<String,String> to Map<String,String> >[ERROR] /private/tmp/ect/eclipse-compiler-test/src/main/java/ect/broken/Test2.java:[16] The type of immediateFuture(Test2.SharedLookupSource) from the type Futures is ListenableFuture<Test2.SharedLookupSource>, this is incompatible with the descriptor's return type: ListenableFuture<Test2.LookupSource> >[INFO] 11 errors >[INFO] ------------------------------------------------------------- >[INFO] ------------------------------------------------------------------------ >[INFO] BUILD FAILURE >[INFO] ------------------------------------------------------------------------ >[INFO] Total time: 1.858 s >[INFO] Finished at: 2015-06-04T10:41:26-07:00 >[INFO] Final Memory: 28M/319M >[INFO] ------------------------------------------------------------------------ > >3) Use the Mars compiler > >Needs download first: > >% curl -L -o org.eclipse.jdt-4.5RC3.zip "http://www.eclipse.org/downloads/download.php?file=/eclipse/downloads/drops4/S-4.5RC3-201505280700/org.eclipse.jdt-4.5RC3.zip&r=1" > >And now install into local maven repo: > >% unzip org.eclipse.jdt-4.5RC3.zip > >% mvn -DgroupId=org.eclipse.tycho -DartifactId=org.eclipse.jdt.core -Dversion=3.11.0.v20150526-1109 -Dpackaging=jar -Dfile=plugins/org.eclipse.jdt.core_3.11.0.v20150526-1109.jar install:install-file > >% mvn -Peclipse-mars clean install >[INFO] Scanning for projects... >[INFO] >[INFO] ------------------------------------------------------------------------ >[INFO] Building eclipse-compilertest 0.1-SNAPSHOT >[INFO] ------------------------------------------------------------------------ >[INFO] >[...] >[INFO] ------------------------------------------------------------- >[ERROR] COMPILATION ERROR : >[INFO] ------------------------------------------------------------- >[ERROR] /private/tmp/ect/eclipse-compiler-test/src/main/java/ect/broken/test7/Dummy.java:[1] The package ect.broken.test7 collides with a type >[INFO] 1 error >[INFO] ------------------------------------------------------------- >[INFO] ------------------------------------------------------------------------ >[INFO] BUILD FAILURE >[INFO] ------------------------------------------------------------------------ >[INFO] Total time: 1.963 s >[INFO] Finished at: 2015-06-04T10:48:07-07:00 >[INFO] Final Memory: 27M/258M >[INFO] ------------------------------------------------------------------------ >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 469317
: 254120